worldclock

command module
v0.0.0-...-3d4f273 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL