Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple http server that gives you current time in ISO datetime format

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages