go学习中遇到的问题记录

引入外部package出错

package golang.org/x/tools/cmd/goimports: unrecognized import path "golang.org/x/tools/cmd/goimports" (https fetch: Get https://golang.org/x/tools/cmd/goimports?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

根据安装文档检查PATH

sudo vim profile


发现是ok的,排除此可能, 直接stackoverflow查是否有类似问题

https://stackoverflow.com/que...

你可能感兴趣的:(golang)