A zero dependency project starter template with HTTP server for Go.
- simple project structure
- zero dependency
- HTTP server
net/http
compatible- middleware support
- centralized error handling
- named route parameters
- Go 1.22+ (for
net/http
)
/app
- app specific code/app/config
- app configuration/app/handler
- HTTP handlers/app/middleware
- HTTP middleware
/cmd
- entry points/cmd/app
- app entry point
/server
- HTTP server
Display Makefile help:
$ make
audit Run QC checks (tests, go mod verify, go vet, govulncheck, gosec)
build Build the project
docker-build Build the docker image
help Display help
run Run the project
test Run tests (use `test v=1` to see verbose output)
test-bench Run tests with benchmarks
test-cover Run tests and display coverage
tidy Run go mod tidy
update Update dependencies