SDK下载
- 可科学上网访问:https://golang.google.cn/dl/
非科学上网访问:https://studygolang.com/dl
设置 GOROOT 和 GOPATH
https://blog.csdn.net/xs20691718/article/details/78089163?locationNum=3&fps=1
Go Mod
go mod 模式下,依赖是放在 $GOPATH/pkg/mod 目录下的,非 go mod 模式下,go get 到的依赖是放在 $GOPATH/src 目录下的。IDE 没有配置正确,自然找不到依赖。
