Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kybernetwork/go-project-template
template for a golang project
https://github.com/kybernetwork/go-project-template
Last synced: about 1 month 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T11:09:48.000Z (11 months ago)
- Last Synced: 2024-06-20T15:53:58.511Z (6 months ago)
- Language: Go
- Size: 533 KB
- Stars: 9
- Watchers: 8
- Forks: 68
- 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