【问题标题】:Go-Swagger autogen documentationGo-Swagger autogen documentation
【发布时间】:2022-12-26 18:39:04
【问题描述】:

I'm trying to create my API documentation using go-swagger. The structure of my project:

In the cmd/main_api folder, I'm launching swag init. Swagger successfully pulls up the annotation from main.go, but does not pull up the annotation from internal (models, handlers). If I use swag init swag init --parseDependency=true then there is a panic:

How to make Swagger pull up an annotation from all project folders?

【问题讨论】:

    标签: go swagger go-swagger


    【解决方案1】:

    Had the same issue, upgrading to v1.8.9 solved it !

    go install github.com/swaggo/swag/cmd/swag@v1.8.9
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-27
      • 1970-01-01
      • 2020-06-08
      • 2019-10-18
      • 1970-01-01
      • 2018-08-26
      • 2016-06-09
      • 2021-08-03
      相关资源
      最近更新 更多