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

time-api

A tiny HTTP API that returns the current UTC time.

  • GET / returns {"utc": "2026-10-19T21:00:00Z"}
  • GET /healthz returns ok

It listens on $PORT (default 8080).

go run .
# or
docker build -t time-api . && docker run -p 8080:8080 time-api