go-遇到的问题

could not launch process: stub exited while waiting for connection: exit status 0

couldn’t start listener: listen tcp 220.250.64.225:51724: bind: can’t assign requested address

最近 go get 总是超时,于是一通折腾,结果 goland 无法调试了,花了好久才找到原因。
上面两个提示都是因为 /private/etc/hosts 文件里面缺少 127.0.0.1 localhost 这一行

ld: symbol(s) not found for architecture x86_64

zmq 需要使用 cgo,而 cgo 不能交叉编译

cannot use path@version syntax in GOPATH mode

暂未处理