Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active September 1, 2018 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YumaInaura/80c3a8ad9685b84a6d9ab221c97e6661 to your computer and use it in GitHub Desktop.
Save YumaInaura/80c3a8ad9685b84a6d9ab221c97e6661 to your computer and use it in GitHub Desktop.
Golang — Show GOPATH in command ( $ go env GOPATH )

Golang — Show GOPATH in command ( $ go env GOPATH )

Example

go env GOPATH
/Users/yuma/go

Bad case

echo $GOPATH

printenv GOPATH

It is empty when you have not GOPATH in env.

Versions

  • go version go1.10.3 darwin/amd64

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment