解决无法访问 golang.org/x/crypto/ssh/terminal 资源的问题

在运行go程序时,出现了cannot find package "golang.org/x/crypto/ssh/terminal" in any of: 的问题

解决方案:

git clone https://github.com/golang/crypto.git

将下载的包放在GOPATH对应的路径下,问题解决!
 

git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net

git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys

git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools

ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x
 

猜你喜欢

转载自blog.csdn.net/learn8more/article/details/84935884