Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 394 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 394 Bytes

time-service

A simple http server that gives you current time in RFC3339 format.

How to use

$ go build main.go
$ ./main

Example

$ curl http://localhost:3000
{"date_time":"2024-04-16T00:16:40+08:00"}

Configuration

You can configure time-service using environment variable.

  • PORT: the port that http server should listen to