Tool to get the current time of any big city of the world. Usage of goroutines to query worldtimeapi.org API server.
The cities to get the current time from have to be passed in the cities parameter.
That parameter is a comma separated list of cities expressed as Continent/City
.
-cities string
Insert the cities to get time from [Continent1/City1, Continent2/City2, etc]
Click here for the list of all possible cities to get the current time from.
The following command:
go run main.go --cities Europe/Berlin,Europe/Rome,America/New_York
produces the following output: