1.新建一个项目有项目名下面包括(bin pkg src)src主要用来放代码
2.进入终端进入src目录 进行 go mod init src 在 src目录中生成go.mod
3.设置 go build configuration ,选择当前src目录,run kind :Directory
Directory:当前项目的src层
working directory:也是当前目录的src层
4.下载第三方包 go get xxxxx
5.设置为国内代理,设置在 go modules 里面添加 https://goproxy.cn,direct