A template for an HTTP API in Golang with some reasonable defaults:
- http timeouts
- graceful shutdown
- open telemetry setup
- cpu profiling
docker compose up api
go tool pprof -seconds 30 -http=:8081 http://localhost:8080/debug/pprof/profile
go tool pprof -http=:8081 http://localhost:8080/debug/pprof/heap