执行go get命令下载依赖失败的解决方法
前言
最近在学习go连接mysql数据库这块,需要下载mysql的驱动包,使用的是下面的命令
go get -u github.com/go-sql-driver/mysql
但是在执行的时候,总是出现如下的错误
go get github.com/go-sql-driver/mysql: module github.com/go-sql-driver/mysql: Get "https://proxy.golang.org/github.com/go-sql-driver/mysql/@v/list": dial tcp 172.217.160.81:443: connect
ex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected