解决go build出错的弯路
开始摸索Pholcus,把Pholcus文件夹放到GOPATH/src之后用cmd执行go build
,返回了各种错误。稍微曲折地解决了,记录一下。环境是Win 10系统,go版本1.20.1。
首先是错误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
根据链接https://www.cnblogs.com/sentouceshi/p/16951198.html执行了
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
重新go build
,返回错误: