go install xxx..xxx
==>the location is ~/go/bin
so ,set the ~/go/bin to .bash_profiles 's PATH
go version
go help environment
```
GOBIN
The directory where 'go install' will install a command.
GOPATH
For more details see: 'go help gopath'.
GOROOT
The root of the go tree.
```
go help gopath
```
If the environment variable is unset, GOPATH defaults
to a subdirectory named "go" in the user's home directory
($HOME/go on Unix, %USERPROFILE%\go on Windows),
unless that directory holds a Go distribution.
Run "go env GOPATH" to see the current GOPATH.
```
go env GOPATH
==>~/go
go help install
````
usage: go install [build flags] [packages]
Install compiles and installs the packages named by the import paths.
Executables are installed in the directory named by the GOBIN environment
variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH
environment variable is not set. Executables in $GOROOT
are installed in $GOROOT/bin or $GOTOOLDIR instead of $GOBIN.
```