1、
使用go install **模块,报错:

go install: version is required when current directory is not in a module
Try 'go install github.com/**/***' to install the latest version
解决:可使用 go get的方式:

2、执行go test **模块时,报错:

no required module provides package github.com/***/**: go.mod file not found in current directory or any parent directory; see 'go help modules'
解决:使用go mod init **模块名,初始化go.mod文件,然后再运行 go get 模块名,即可:

3、在sublime 安装go扩展模块的时候提示“Server returned 404”
解决: 版本过低,升级vscode,重新安装扩展即可
其他:
(1)检查 golang环境:
go env
使用命令
go env -w GO111MODULE=auto
修改值为auto





![[匿名者攻击] 微软(以色列)博客网站疑被拖库-微慑信息网-VulSee.com](http://hackernews.cc/wp-content/uploads/2017/08/WechatIMG349-1-600x421.jpeg)




![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
