注意事项

使用帮助

使用示例

  1. $ gf run main.go --swagger
  2. 2020-12-31 00:40:16.948 build: main.go
  3. 2020-12-31 00:40:17.216 gf pack swagger packed/swagger.go -n packed -y
  4. 2020-12-31 00:40:17.279 done!
  5. 2020-12-31 00:40:17.282 go build -o bin/main main.go
  6. 2020-12-31 00:40:18.696 go file changes: "/Users/john/Workspace/Go/GOPATH/src/github.com/gogf/gf-demos/packed/swagger.go": WRITE
  7. 2020-12-31 00:40:18.696 build: main.go
  8. 2020-12-31 00:40:18.775 producing swagger files...
  9. 2020-12-31 00:40:19.045 gf pack swagger packed/swagger.go -n packed -y
  10. 2020-12-31 00:40:19.136 done!
  11. 2020-12-31 00:40:19.144 go build -o bin/main main.go
  12. 2020-12-31 00:40:21.367 bin/main
  13. 2020-12-31 00:40:21.372 build running pid: 40954
  14. 2020-12-31 00:40:21.437 [DEBU] [ghttp] SetServerRoot path: /Users/john/Workspace/Go/GOPATH/src/github.com/gogf/gf-demos/public

常见问题