Go
Go snippets
Setting GOPATH
The GOPATH environment variable specifies the location of your workspace. If no GOPATH is set, it is assumed to be $HOME/go If you want to use a custom location as your workspace, you can set the GOPATH environment variable.
Bash
Edit your ~/.bash_profile to add the following line:
export GOPATH=$HOME/go
Run Go app
go run main.go
Go basics
Pointers
Go has pointers. A pointer holds the memory address of a value.