Swag:|Swag: cannot find module for path .
Golang项目中集成swagger的时,执行swag命令报错:cannot find module for path .
swag init -g $workdir此时确认当前Golang版本,如果版本<= 1.13建议升级golang版本,再次执行即可。
$ go versionrefer:https://github.com/golang/go/issues/34169
【Swag:|Swag: cannot find module for path .】go version go1.13 darwin/amd64
参考:https://www.ctolib.com/swaggo-swag.html#api-operation
推荐阅读
- cannot|cannot be read or is not a valid ZIP file
- 运行报错Cannot|运行报错Cannot find module '@babel/compat-data/corejs3-shipped-proposals’
- 文件解压缩及搜索文件find
- Option|Option B: Facing Adversity, Building Resilience and Finding Joy
- iOS|iOS -Cannot synthesize weak property because the current deployment target does n
- react|react Cannot find module 'node_modules/_react-scripts/config/webpack.config.dev
- findimage|findimage 支持自动缩放了
- linux find指令用法 - 查找文件利器
- Linux上如何查找文件
- 转换匹配患者记录,看Amazon Lake Formation FindMatches显神通!