Skip to content

calanco/worldclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordClock

Tool to get the current time of any big city of the world. Usage of goroutines to query worldtimeapi.org API server.

Usage

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.

Example

The following command:

    go run main.go --cities Europe/Berlin,Europe/Rome,America/New_York

produces the following output:

alt Output example

About

Test application for golang routines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published