swaggos v0.0.1 发布
Swaggos swaggos 是一个 golang 版本的 swagger 文档生成器,提供了native code包装器,并且支持主流的web框架包裹器 安装 go get -u github.com/clearcodecn/swaggos 示例 目前只支持gin的包裹器 package main import ( "github.com/clearcodecn/swaggos" "github.com/clearcodecn/swaggos/ginwrapper" "github.com/gin-gonic/gin" "github.com/go-openapi/spec" ) type User struct { Username string `json:"username" required:"true"` Password string `json:"password" required:"true" description:"密码" example:"123456" maxLength:"20" minLength:"6" patte...