美文网首页
gopls was not able to find modul

gopls was not able to find modul

作者: 苍老师的眼泪 | 来源:发表于2023-02-11 23:56 被阅读0次

    如果当前工作目录下面的所有文件夹包括子文件夹里面超过一个go.mod文件,则会报错
    方法:用 生成一个 go.work 用来声明当前工作目录有哪些模块:
    go work init ./greet ./hello

    相关文章

      网友评论

          本文标题:gopls was not able to find modul

          本文链接:https://www.haomeiwen.com/subject/pxhkkdtx.html