報錯package xxx is not in GOROOT or GOPATH 或者 cannot find package 「xxx「 in any of

GO111MODULE=「off」 在GO111MODULE="off"的條件下,並且寫的代碼不在 G O P A T H / s r c 下 , 也 就 是 說 下 面 的 m a i n . g o 不 在 GOPATH/src下,也就是說下面的main.go不在 GOPATH/src下,也就是說下面的main.go不在GOPATH/src目錄下面,同時我想要使用另一個module裏面的內容,
相關文章
相關標籤/搜索