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
- Sign up on Codecov and configure Codecov GitHub Application for all repositories.
- Click the
Use this templatebutton (alt. clone or download this repository). - Replace all occurences of
dev-templates/go-cloud-runtoyour_org/repo_namein all files. - Rename folder
cmd/go-cloud-runtocmd/app_name. - Replace
gcr.io/app/servertogcr.io/<PROJECT_ID>/<IMAGE_ID>/repo_nameindocker-compose.yml. - Update LICENSE and README.md.
- Visual Studio Code:
Terminal→Run Build Task... (Ctrl+Shift+P => Tasks: Run Task)to execute a fast build or run docker-compose.
Notable files:
- .github/workflows - GitHub Actions workflows,
- .github/dependabot.yml - Dependabot configuration,
- .vscode - Visual Studio Code configuration files,
- go.mod - Go module definition,