cli

command
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

weather.go

This application will go out and get the weather for the given location and display it in the given data units (fahrenheit, celcius, or kelvin). If the string "here" is provided as an argument to the -l flag, the app will try to figure out where it's being executed from based on geolocation from the IP address.

Examples:

go run weather.go --help
go run weather.go -w Philadelphia -u f -l en  # fahrenheit, English
go run weather.go -w here -u f -l ru          # fahrenheit, Russian
go run weather.go -w Dublin -u c -l fi        # celcius, Finnish
go run weather.go -w "Las Vegas" -u k -l es   # kelvin, Spanish

Jump to

Keyboard shortcuts

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