💾 Archived View for godocs.io › github.com › briandowns › openweathermap › _examples › cli captured on 2024-05-26 at 14:57:57. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-12)

➡️ Next capture (2024-08-19)

🚧 View Differences

-=-=-=-=-=-=-

cli command - github.com/briandowns/openweathermap/_examples/cli - godocs.io

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

Details

Version: v0.19.0 (latest)

Platform: linux/amd64

Imports: 9 packages

Refresh now

Back to home

Search