艾希膳 艾希膳
  • 首页
  • 技术分享
  • Laravel
  • PHP
  • Golang
  • 推荐软件
  • Vue
  • 关于
  • 技术分享
    Laravel
    PHP
    Golang
    推荐软件
    Vue
    关于
首页 分类 Golang 下的文章
Windows下编译go程序出错:go.mod file not found in current directory or any parent directory

Windows下编译go程序出错:go.mod file not found in current directory or any parent directory

【场景】在vscode里安装了go编译环境,然后用vs的终端编译第一个go程序,然后报错:go.mod file not found in current directory or any parent directory【原因】主要就是环境配置的有问题【解决方法】在Windows下打开cmd然后输入下面这条命令就可以go env -w GO111MODULE=auto【解析】GO111MO...

 Golang  2022-11-21 PM  221次  0条
解决VSCode安装Go tools失败的问题

解决VSCode安装Go tools失败的问题

安装Go后,打开VS Code,按照提示安装了微软官方的GO插件。但在安装go tools时,出现了下面的一大堆错误。go.toolsGopath setting is not set. Using GOPATH /Users/l2m2/goInstalling 17 tools at /Users/l2m2/go/bin in module mode. gocode gopkgs g...

 Golang  2022-11-21 PM  223次  0条

励志语句 ~

  • 要纠正别人之前,先反省自己有没有犯错。

  • 因害怕失败而不敢放手一搏,永远不会成功。

  • 人生最终的价值在于觉醒和思考的能力,而不只在于生存。

  • 现在不玩命,将来命玩你,现在不努力,未来不给力——致自己。

  • 一旦立下目标,不达目标绝不罢手,方可成功。

友情链接申请

目前没有