Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 521 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 521 Bytes

macaron-swagger

macaron middleware to automatically generate RESTful API documentation with Swagger 2.0.

This toolkit is based on the work from https://github.com/swaggo/gin-swagger

Usage

cd $project

# you need to install goswagger first
# go get -u github.com/go-swagger/go-swagger/cmd/swagger
swagger generate spec -o ./swagger.json

go run $GOPATH/src/github.com/fengbeihong/macaron-swagger/cmd/main.go init swagger.json

# now you have the file docs/docs.go