go-template Install swag by using go install github.com/swaggo/swag/cmd/swag@latest Generate Swagger documents integrated with Apifox Run the command in your project directory swag init -g /cmd/main.go -exclude model