GitHub - create-go-app/chi-go-template: 📝 Production-ready backend template with go-chi router for Create Go App CLI. (original) (raw)
Chi is a lightweight, idiomatic and composable router for building Go HTTP services.
.env
Stage status to start server:
- "dev", for start server without graceful shutdown
- "prod", for start server with graceful shutdown
STAGE_STATUS="dev"
Server settings:
SERVER_HOST="0.0.0.0" SERVER_PORT=5000 SERVER_READ_TIMEOUT=5 SERVER_WRITE_TIMEOUT=10 SERVER_IDLE_TIMEOUT=120