Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 729 Bytes

ABOUT_SETTING_UP_GO.md

File metadata and controls

21 lines (16 loc) · 729 Bytes

About setting up Go

This is just a friendly reminder for myself, whenever I need to install Go on macOS, I need to set the following variables on the ~/.bash_profile file:

export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

Most of the available online documentation and resources I found missed to set the GOBIN variable, which causes an error whenever running the go get command in the project's directory.

You might also want to add a symlink from your GOPATH to wherever you cloned the plis project into...

# Make sure your'e inside the cloned plis project directory:
mkdir -p ${GOPATH}/src/github.com/IcaliaLabs
ln -s $(pwd) ${GOPATH}/src/github.com/IcaliaLabs/plis