Skip to content

Instantly share code, notes, and snippets.

@dimawebmaker
Created November 25, 2015 08:48
Show Gist options
  • Save dimawebmaker/e3bb9a6ee4cacb636525 to your computer and use it in GitHub Desktop.
Save dimawebmaker/e3bb9a6ee4cacb636525 to your computer and use it in GitHub Desktop.
Golang Path setup on Linux
#В зависимости от эмулятора терминала, нужно добавить в ~/.bashrc (.zshrc, etc), следующие строки:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
#/usr/local/go - расположение самой инсталляции (может отличатся в зависимости от системы и в случае использования менеджера управления версиями)
#$HOME/go - расположение любой директории, в которой хотите хранить пакеты
@Guvanchhojamov
Copy link

It works, thanks!

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