💾 Archived View for godocs.io › github.com › briandowns › openweathermap › _examples › cli captured on 2024-08-19 at 03:36:28. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-26)
-=-=-=-=-=-=-
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