cmd
go version
go env
gopath
The Go path is used to resolve import statements.
GOPATH is a list of directories (like PATH). Run go help gopath
for details.
The GOPATH environment variable lists places to look for Go code.
- On Unix, the value is a colon-separated string.
- On Windows, the value is a semicolon-separated string.