Skip to content

Instantly share code, notes, and snippets.

@ilumin
Last active August 29, 2015 14:24
Show Gist options
  • Save ilumin/2d5d4323566f5cde07f1 to your computer and use it in GitHub Desktop.
Save ilumin/2d5d4323566f5cde07f1 to your computer and use it in GitHub Desktop.
Set Golang environment

set gopath (where your go library and tools are locate)

$ export GOPATH=~/.go
$ export PATH=$GOPATH/bin:$PATH

set GOROOT (where your go execute file locate)

$ export GOROOT=/usr/local/go
$ export PATH=$GOOROOT/bin:$PATH

install go nut

$ go get -u github.com/AlekSi/nut/...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment