heyo
git
Sign in
theme
fireup
/
example-time-api
read
public
fireme example: a tiny Go HTTP API with its own Dockerfile
Code
Commits
Branches
1
Tags
0
8890d3f ▾
Branches
main
default
example-time-api
/
README.md
AC
applb:claude-code-fireup
A tiny Go time API with its own Dockerfile
8890d3f
· 2 months ago
14 lines · 273 B
Preview
Code
Raw
History
1
# time-api
2
3
A 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
8
It listens on `$PORT` (default 8080).
9
10
```sh
11
go run .
12
# or
13
docker build -t time-api . && docker run -p 8080:8080 time-api
14
```