# README
Go Repository Template for Google Cloud Run
This is a GitHub repository template for Go
It includes:
- continous integration via GitHub Actions,
- dependency management using Go Modules,
- code formatting using gofumpt,
- linting with golangci-lint,
- Codecov report,
- dependencies scanning and updating thanks to Dependabot,
- Visual Studio Code configuration with Go
Usage
- Sign up on Codecov and configure Codecov GitHub Application for all repositories.
- Click the
Use this template
button (alt. clone or download this repository). - Replace all occurences of
dev-templates/go-cloud-run
toyour_org/repo_name
in all files. - Rename folder
cmd/go-cloud-run
tocmd/app_name
. - Replace
gcr.io/app/server
togcr.io/<PROJECT_ID>/<IMAGE_ID>/repo_name
indocker-compose.yml
. - Update LICENSE and README.md.
Build
- Visual Studio Code:
Terminal
→Run Build Task... (Ctrl+Shift+P => Tasks: Run Task)
to execute a fast build or run docker-compose.
Maintainance
Notable files:
- .github/workflows - GitHub Actions workflows,
- .github/dependabot.yml - Dependabot configuration,
- .vscode - Visual Studio Code configuration files,
- go.mod - Go module definition,