Using GoLang 1.23.4 and Fiber 2.52.6 to create a simple API.
go mod tidy
go run main.go
Swagger is a tool that can help to document APIs. To generate the Swagger documentation, run the following command:
swag init
This will generate a docs
folder with the Swagger documentation.
Note: You need to have the swag
tool installed.