https://github.com/kybernetwork/go-project-template
template for a golang project
https://github.com/kybernetwork/go-project-template
Last synced: 12 months ago
JSON representation
template for a golang project
- Host: GitHub
- URL: https://github.com/kybernetwork/go-project-template
- Owner: KyberNetwork
- Created: 2022-01-07T03:24:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-22T05:16:32.000Z (about 1 year ago)
- Last Synced: 2025-05-22T06:25:34.476Z (about 1 year ago)
- Language: Go
- Size: 544 KB
- Stars: 11
- Watchers: 8
- Forks: 69
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## This is a template repository for golang project
### Usage
1. Go to github: https://github.com/KyberNetwork/go-project-template
2. Click use this template
3. Create a new repository with the template
4. Rename package in `go.mod`
5. Update db name in docker-compose.yml (docker-compose is optional)
6. Update const `pkg/app/postgresql.go`
7. Update db name in `.github/workflows/ci.yaml`
8. Run local `golangci-lint` :
`golangci-lint run --config=.golangci.yml ./...`
9. Update dockerfile under `./docker-files/Dockerfile.service-name` and add more dockerfiile if needed