fireup / example-time-api read public
fireme example: a tiny Go HTTP API with its own Dockerfile
| Dockerfile | A tiny Go time API with its own Dockerfile | 2 months ago |
| go.mod | A tiny Go time API with its own Dockerfile | 2 months ago |
| main.go | A tiny Go time API with its own Dockerfile | 2 months ago |
| README.md | A tiny Go time API with its own Dockerfile | 2 months ago |
README.md
viewtime-api
A tiny HTTP API that returns the current UTC time.
GET /returns{"utc": "2026-10-19T21:00:00Z"}GET /healthzreturnsok
It listens on $PORT (default 8080).
go run .
# or
docker build -t time-api . && docker run -p 8080:8080 time-api