(base) gw00241401@gw00241401-pc:/data2/09_grafana/plugin/nebula-go/examples/basic_example$ go run graph_client_basic_example_ghf.go
go: github.com/stretchr/testify@v1.7.0: Get "https://proxy.golang.org/github.com/stretchr/testify/@v/v1.7.0.mod": dial tcp 172.217.160.113:443: i/o timeout
go: downloading github.com/vesoft-inc/fbthrift v0.0.0-20230214024353-fa2f34755b28
go: downloading golang.org/x/net v0.17.0
go: github.com/stretchr/testify@v1.7.0: Get "https://proxy.golang.org/github.com/stretchr/testify/@v/v1.7.0.mod": dial tcp 172.217.160.113:443: i/o timeout
解决方案:
因为国外网站被屏蔽的原因,需要配置国内镜像站点:
执行:go env ,查看配置
echo "export GOPROXY=https://goproxy.cn" >> ~/.profile && source ~/.profile
再运行go run 就ok了