https://goswagger.io/install.html
Run
- go get
- go get -u github.com/go-swagger/go-swagger/cmd/swagger
- to create spec file run swagger generate spec -o ./swagger.yaml --scan-models
run these commands parallelly
- go run main.go and
- for swagger ui swagger serve -F=swagger swagger.yaml