Swagger, get to know InPrevious section, we completed a server support at the same timeRpcAndRESTful ApiAfter that, you thought you’d done it, only to find out suddenly that you wanted to write it.ApiDocking documents with front-end colleagues = =. . . Do you think there are any components that can be automatically generatedApiDocuments to solve ..
Add Swagger to it. A good oneAPI’s, must be inseparable from a goodAPIDocument To develop pure handwritingAPIDocument, does not exist: =) Project address:https://github.com/EDDYCJY/go … Install swag 1、go get $ go get -u github.com/swaggo/swag/cmd/swag If$GOPATH/binNot joined$PATHIn, you need to execute the move of its executable file to$GOBINunder mv $GOPATH/bin/swag /usr/local/go/bin 2、gopm get This package has referencesgolang.orgIf ..