Summary
Add a production-ready Go API template to ForgeKit.
Stack
- Framework: Chi (lightweight, idiomatic Go router)
- Database: Postgres with sqlx
- Migrations: golang-migrate
- Container: Multi-stage Dockerfile, docker-compose with Postgres service
- CI: GitHub Actions matrix on Go 1.21 + 1.22
- Health check:
GET /healthz endpoint
- Tests:
go test ./... with coverage
Acceptance criteria
See Contributing for the template format.
Summary
Add a production-ready Go API template to ForgeKit.
Stack
GET /healthzendpointgo test ./...with coverageAcceptance criteria
forgekit new my-api --template go-apiscaffolds the projectdocker compose upstarts the app and Postgresregistry.jsondocs/templates/go-api.mdSee Contributing for the template format.