repository
0.0.0-20240718125623-fc1af1ebfb02
Repository: https://github.com/shayanderson/go-project.git
Documentation: pkg.go.dev
# README
Go Project
A zero dependency project starter template with HTTP server for Go.
Features
- simple project structure
- zero dependency
- HTTP server
net/http
compatible- middleware support
- centralized error handling
- named route parameters
Requirements
- Go 1.22+ (for
net/http
)
Structure
/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
Makefile
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