如果当前工作目录下面的所有文件夹包括子文件夹里面超过一个go.mod文件,则会报错
方法:用 生成一个 go.work 用来声明当前工作目录有哪些模块:
go work init ./greet ./hello
如果当前工作目录下面的所有文件夹包括子文件夹里面超过一个go.mod文件,则会报错
方法:用 生成一个 go.work 用来声明当前工作目录有哪些模块:
go work init ./greet ./hello
本文标题:gopls was not able to find modul
本文链接:https://www.haomeiwen.com/subject/pxhkkdtx.html
网友评论