Go Weather Forecast was inspired from Python Weather Forecast. However this application does not leverage the same API's or have the exact capability.
The Go Weather Forecast leverages the OpenWeather API using any City
as a parameter.
go1.14.15
- OpenWeather API Key
Declare the environment variable for your API key to Open Weather as so.
$ export OW_API_KEY=<your_api_key_from_openweathermap>
Clone this project:
$ git clone https://github.com/spensireli/go-weather-forecast
Run main.go
passing a city.
$ go run main.go -city
$ go run main.go -city=Pittsburgh
The city is: Pittsburgh
The temperature is: 72.59
The humidity is: 76
The code in this project is licensed under MIT LICENSE. Read file for more information.