command
module
Version:
v0.0.0-...-bbe199b
Opens a new window with list of versions in this module.
Published: Jul 1, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Weather API Project
This project is a simple web server written in Go that fetches and serves weather data.
Project Structure
main.go: This is the main file of the project. It sets up the HTTP server and the route handlers.
.env: This file contains environment variables, such as the API key for the weather service.
How to Run
- Ensure that Go is installed on your machine.
- Clone the repository and navigate to the project directory.
- Run
go run main.go in the terminal to start the server.
- Navigate to
http://localhost:8080/weather/{city} in your web browser to fetch weather data for a specific city.
Dependencies
This project uses the github.com/joho/godotenv package to load environment variables from the .env file.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.