当前位置:   article > 正文

golang unrecognized import path "golang.org/x/crypto"

golang unrecognized import path "golang.org/x/crypto"

golang unrecognized import path "golang.org/x/crypto"的解决方法

用代理还是靠谱些

  1. [root@test rttys]# export GOPROXY=https://goproxy.io
  2. [root@test rttys]# export GO111MODULE=on
  3. [root@test rttys]# go get
  4. go: downloading golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4
  5. go: extracting golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4
  6. go: finding github.com/dwdcth/consoleEx v0.0.0-20180521133551-f56f6eb78b76
  7. go: finding github.com/gorilla/websocket v1.4.1
  8. go: finding github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
  9. go: finding github.com/json-iterator/go v1.1.9
  10. go: finding github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28
  11. go: finding github.com/mattn/go-colorable v0.1.4
  12. go: finding github.com/rakyll/statik v0.1.7
  13. go: finding golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4
  14. go: finding github.com/rs/zerolog v1.18.0
  15. go: finding github.com/mattn/go-isatty v0.0.8
  16. go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d
  17. go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
  18. go: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742

附上Go.mod的格式

  1. [root@test rttys]# cat go.mod
  2. module github.com/zhaojh329/rttys
  3. go 1.14
  4. require (
  5. github.com/dwdcth/consoleEx v0.0.0-20180521133551-f56f6eb78b76
  6. github.com/gorilla/websocket v1.4.1
  7. github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
  8. github.com/json-iterator/go v1.1.9
  9. github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28
  10. github.com/mattn/go-colorable v0.1.4
  11. github.com/rakyll/statik v0.1.7
  12. github.com/rs/zerolog v1.18.0
  13. golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4
  14. )

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/624956
推荐阅读
相关标签
  

闽ICP备14008679号