heyogit

fireup / example-time-api read public

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

1 branches · 0 tags
ACapplb:claude-code-fireupA tiny Go time API with its own Dockerfile8890d3f · 2 months ago 1 commits
DockerfileA tiny Go time API with its own Dockerfile2 months ago
go.modA tiny Go time API with its own Dockerfile2 months ago
main.goA tiny Go time API with its own Dockerfile2 months ago
README.mdA tiny Go time API with its own Dockerfile2 months ago

README.md

view

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