(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
2024-01-05 12:15:04
(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