GoPath Gopath是包含Go源代码的目录树列表。它被咨询解决在标准Go树中找不到的导入。
pathstring)string funcWalk(rootstring,walkFnWalkFunc)error typeWalkFunc 例子 JoinRelSplitSplitList 包文件 match.gopath.gopath_unix.gosymlink.gosymlink_unix.go
matchedbool,errerror) funcSplit(pathstring)(dir,filestring) 例子 BaseCleanDirExtIsAbsJoinSplit 包文件 match.gopath.go
dir.godir_unix.goenv.goerror.goerror_posix.goerror_unix.goexec.goexec_posix.goexec_unix.goexecutable.goexecutable_procfs.gofile.gofile_posix.gofile_unix.gogetwd.gopath.gopath_unix.gopipe_linux.goproc.gostat_linux.gostat_unix.gosticky_notbsd.gostr.gosys.gosys_linux.gosys_unix.gotypes.gotypes_unix.gowait_waitid.go
GOARCH,GOOS,GOPATH和GOROOT环境变量完成Go环境变量的设置。