A simple Go HTTP service with health check and greeting endpoints.
| Method | Path | Description |
|---|---|---|
| GET | /health |
Returns service health status |
| GET | /greet?name=X |
Returns a greeting (defaults to "World") |
# Run locally
make run
# Run tests
make test
# Build binary
make build
# Lint
make lint| Variable | Default | Description |
|---|---|---|
PORT |
8080 |
HTTP listen port |
APP_VERSION |
0.1.0 |
Reported in health endpoint |
docker build -t go-hello .
docker run -p 8080:8080 go-hello