GoWeather
A CLI tool to provide the weather on a given location.
Written in Go using the Open Weather API
Usage
To run the program follow the steps below:
git clone https://github.com/1063551/GoWeather.git
cd GoWeather/
To see the valid format of the arguments:
go run main.go -h
-location string
a valid location (default "Barcelona")
And now run the program with your preferred location (in this case, New York):
go run main.go New York
To-Do
- Make efficient code to search for cities with the same name, choose the most habited one for example.
- Accept multiple cities as input.
- Let the user specify (or not) the country.
- Give the user a choice of parameters to be displayed.