005_go path使用指南

一、

(1)直接输入go指令会有如下的帮助信息:
go
The commands are:
	build       compile packages and dependencies
	doc         show documentation for package or symbol
	env         print Go environment information

Use "go help [command]" for more information about a command.
Additional help topics:
	buildmode   description of build modes
	gopath      GOPATH environment variable
	packages    description of package lists
(2)
go help gopath #gopath重要帮助
The Go path is used to resolve import statements.
The GOPATH environment variable lists places to look for Go code.
    If the environment variable is unset, GOPATH defaults to a subdirectory named "go" in the user's home directory ($HOME/go on Unix)
(3)
运行"go env GOPATH"查看当前的GOPATH路径

(4)#When 'go get' checks out or updates a git repository, it now also updates submodules.
go get github.com/astaxie/beego
(5)查看常用go的环境变量
go help environment

二、

 

posted @ 2018-03-29 15:32  arun_python  阅读(451)  评论(0)    收藏  举报