在指定目录下
go build
报错 : go: cannot find main module; see ‘go help modules’
解决办法 : go env -w GO111MODULE=off

参考文档:https://goproxy.io/zh/ 和 https://blog.csdn.net/benben_2015/article/details/82227338

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-10-16
相关资源
相似解决方案