go get出现错误的解决办法
AI摘要:本文介绍了解决使用go get命令时出现错误的方法。错误提示为无法识别导入路径"golang.org/x/sys/windows",解决方法是通过以下步骤:
1. 在终端中执行命令"mkdir -p $GOPATH/src/golang.org/x",创建目录
2. 进入目录"$GOPATH/src/golang.org/x"
3. 分别执行命令"git clone https://github.com/golang/sync.git"、"git clone https://github.com/golang/crypto.git"、"git clone https://github.com/golang/sys.git",克隆相应的仓库
通过以上步骤,可以解决该错误。
原文链接:https://blog.csdn.net/cyLee_/java/article/details/93159032
错误提示
unrecognized import path "golang.org/x/sys/windows": https fetch: Get "https://golang.org/x/sys/windows?go-get=1": dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
解决办法
mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/sync.git
git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/sys.git
————————————————
原文链接:https://blog.csdn.net/cyLee_/java/article/details/93159032
关闭
复制链接
https://imsun.org/archives/219.html
Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /www/sites/imsun.org/index/usr/themes/farallon/comments.php on line 4
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/sites/imsun.org/index/usr/themes/farallon/comments.php on line 4