The work currently is in progress to create more organized template
- Go Language InstalledWindows
- go build cmd\main.go
- go run cmd\main.go
Linux
- go build cmd/main.go
- go run cmd/main.go
URL: http://localhost:8080/swagger//index.html
Usually the swagger would be updated to latest. However if you need to do some development and changing the API, you need to update the swagger again. Make sure you already have swag by usinggo install github.com/swaggo/swag/cmd/swag@latest
and then you can run:
Windows
swag i -g pkg\api\api_v1.go --instanceName v1
Linux
swag i -g pkg/api/api_v1.go --instanceName v1