This plugin is used to merge all the routes in one file.
$ GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/goctl-go-compact@latest
Make sure the installed goctl-go-compact
in your $PATH
$ goctl api plugin -p goctl-go-compact -api user.api -dir .