GoWeather is a tiny command line program that queries the current weather in a specified city via OpenWeatherMap's API
Go to file
Helmut Kaczmarek d5f5b51db8 Added URL to Go website 2023-08-24 11:15:21 +02:00
LICENSE Initial commit 2023-08-24 11:08:40 +02:00
README.md Added URL to Go website 2023-08-24 11:15:21 +02:00
goweather.go Initial commit 2023-08-24 11:08:40 +02:00

README.md

GoWeather

My first small attempt in the programming language Go.

GoWeather is a tiny command line program that queries the current weather in a specified city via OpenWeatherMap's API and displays the result in the terminal window.

Usage

First, enter your API key and your city ID here:

apiKey := "API_KEY"
city := "CITY_ID"

You can then run the program with go run goweather.go or compile the source code with go build goweather.go and start the program by double clicking goweather.exe (if you are on a Windows machine).