go can't find import: "github.com/** 错误

go get 后 go build 错误

can't find import: "github.com/ 

 

原因:

1.gopath 没配好

2.go get 后要先 go install ,才可以go build

下面只是windows下的:

原文地址:https://www.cnblogs.com/zulin/p/3667407.html