goland之基础使用


安装go之后,

1.设置环境变量

GOROOT,GOPATH

2.goland配置

配置GOPATH

GO Modules

  GOPROXY=https://goproxy.io,direct

常见错误:

1.proxyconnect tcp: dial tcp 127.0.0.1:8888: connectex: No connection could be made because the target machine actively refused it. 

 goland 设置里Http Proxy 不知道为什么默认是Manual proxy configuration ,改为No proxy 后正常了