Skip to content

ongeziwe17/go-weather-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Weather CLI

Description

A simple command-line weather application written in Go that fetches current weather information for a city.

Features

  • Search weather by city
  • View temperature
  • View weather condition
  • View humidity
  • View wind speed

Requirements

  • Go installed
  • Internet connection
  • OpenWeather API key

How to Run

go run ./cmd/weather-cli "Cape Town"

Example Output

Current Weather

City: Cape Town Temperature: 20.5°C Condition: Clear Description: clear sky Humidity: 64% Wind Speed: 4.5 m/s

Screenshots

alt text

(NB) Environment Variables

Create a .env file in the project root: OPENWEATHER_API_KEY=your_api_key_here

About

Weather API - CLI app built using Golang

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages