A simple command-line interface tool written in Go to check the current weather conditions for a specific location.
This application uses the Open-Meteo Geocoding and Weather APIs to resolve a location name to coordinates and fetch weather data.
- Go 1.25 or higher
To run the application, use the following command:
go run main.go <place>go run main.go RecifeOutput:
Getting Coordinates...
Getting weather...
Temperature: 25.3°
main.go: Entry point of the application. Handles CLI arguments and orchestration.requests/localization.go: Handles geocoding requests to convert city names to latitude/longitude.requests/weather.go: Handles weather requests to fetch weather data.