go1.23
- Install Go: https://go.dev/doc/install
- If you want to manage multiple versions, use gvm.
- Run Go test:
go test -covergo test -vgo test -racerace detector
- Init a module.
multiple mod: go.work
go mod init <modulepath e.g. "tmp">
addgo work init go work use .go.work*to.gitignore - Tools:
- Test:
- Debug: Delve
- Lint: golangci-lint
- VSCode extensions:
Details
- uses: actions/checkout@v3
- name: set up
uses: actions/setup-go@v4
with:
go-version-file: go.mod- Learn Go with tests (Official: https://quii.gitbook.io/)
- Pattern
- Pragmatic Cases
- Database
- Kubernetes
- kind cluster
- k8s client (needs go1.17 or later to use controller-runtime@v0.13.0 #83)
- Skaffold
- Others
- Integrated Examples