gowfa⛈
🚨This simple program is written with GO to forecast weather
You can use with 2 methods :
- Api version
- Cli version
How to use:
First of all you need to create an .env file and add "".
The key should be api key from https://weatherapi.com/ .
Run:
Cli mode :
go run ./cmd/app/main.go -c="name of city"
Api mode :
go run ./cmd/app/main.go -c="name of city" -a
Test api with curl
curl localhost:3000/forecast?city=Tehran
The response is large json data about weather of city