gowork a framework of golang 1.install swag go get -u github.com/swaggo/swag/cmd/swag 验证安装是否成功 swag -v 使用,在项目根目录下执行 swag init