Golang server boilerplate.
To create a battle-tested server template that implements the most common best practices.
- Dockerfile
- TOML configuration with go-toml
- Structured logging with zap
- Graceful boot/shutdown with go-boot
- Prometheus metrics
- Simple HTTP server with gin framework
- Dependency injection with dig
- Find and replace all "boilerplate" words for your product.
- Building:
docker build .ormake build - Testing:
make testandmake lint - Running:
make runor simplygo run .