GoWeather is a weather application developed using Go(lang) that leverages the OpenWeatherAPI to provide users with accurate and prompt responses for up-to-date weather information.
- Retrieve current weather information for a specific location.
- Get detailed weather forecasts for the next few days.
- Supports both metric and imperial units.
- User-friendly command-line interface.
- Clone the repository:
git clone https://github.com/your_username/GoWeather.git
- Navigate to the project directory:
cd GoWeather
- Build the executable:
go build
To use GoWeather, follow these steps:
- Sign up for an API key at OpenWeatherAPI.
- Export your API key as an environment variable:
export OPENWEATHER_API_KEY="your_api_key_here"
- Run the executable with the desired location and options:
./GoWeather -city "New York" -units metric
Replace "New York"
with the desired city and "metric"
with either "metric"
or "imperial"
for units.
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.