A basic API for displaying temperature data for cities.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go (version 1.16 or higher)
- Git
- Clone the repository:
git clone https://github.com/your-username/Go-API-naloga.git- Change into the project directory:
cd Go-API-naloga- Install the required dependencies:
go get -u github.com/gin-gonic/gin
go get -u github.com/ahmetb/go-linq/v3
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files- Run the application:
go run main.goThe API will start running on http://localhost:8080.
The API documentation is generated using Swagger. To access the Swagger UI, navigate to http://localhost:8080/swagger/index.html.
- Go - The programming language used
- Gin - A web framework for Go
- go-linq - A LINQ-like library for Go
- gin-swagger - A Swagger 2.0 documentation generator for Gin
- swaggo/files - A Swagger 2.0 file serving package for Gin
- Tadej Lipar - Initial work - Tadej25