gowfa

module
v0.0.0-...-fa9d187 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT

README

gowfa⛈

🚨This simple program is written with GO to forecast weather

You can use with 2 methods :

  1. Api version
  2. 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"

image

Api mode :

  go run ./cmd/app/main.go -c="name of city" -a

Test api with curl

  curl localhost:3000/forecast?city=Tehran

image

The response is large json data about weather of city

Directories

Path Synopsis
cmd
api
app
cli
pkg
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL