heyogit

fireup / example-time-api read public

fireme example: a tiny Go HTTP API with its own Dockerfile

ACapplb:claude-code-fireupA tiny Go time API with its own Dockerfile8890d3f · 2 months ago
14 lines · 273 B
1# time-api
2
3A tiny HTTP API that returns the current UTC time.
4
5- `GET /` returns `{"utc": "2026-10-19T21:00:00Z"}`
6- `GET /healthz` returns `ok`
7
8It listens on `$PORT` (default 8080).
9
10```sh
11go run .
12# or
13docker build -t time-api . && docker run -p 8080:8080 time-api
14```