(1)安装swag命令:
go get -u github.com/swaggo/swag/cmd/swag@v1.6.7 #会在gopath目录下的bin目录下生成swag.exe文件
(2)测试swag命令是否正常:
swag init -g ./apiv1/swagger.go -o ./docs/swagger
标签:swag,windows,36,命令,go,swagger,安装,目录
来源: https://blog.csdn.net/qq_42303254/article/details/122426521