在终端中,ech $GOPATH正常输出,GOPATH变量写在了~/.bashrc文件中,os.Getenv("GOPATH")获取不到后来尝试把GOPATH变量写在~/.profile, /etc/profile, ...
確定! 回上一頁