go get <pkg.name> to install any go packages

go to root folder of project >
go env to set env of gopath first step:
export GOPATH=`pwd`  > where root folder not src
==GOPATH="/Users/vamsi.vendra/Documents/git/asos-web-api"

from go src folder:ยป

go run mysp/domain/cmd/create_user.go --configfile mysp/domain/config/config.toml

atom >> to run ide

Environment variables

TODO: Stuff here about $HOME etc. Setting up for development.

echo 'export GOPATH=$HOME' >> $HOME/.profile
source $HOME/.profile
go env | grep GOPATH
GOPATH="/Users/myusername"
export GOPATH=~/Dropbox/go # /Volumes/MICROSD/go
mkdir -p $GOPATH
cd $GOPATH
mkdir -p $GOPATH/src
mkdir -p $GOPATH/src/github.com/raul
mkdir -p $GOPATH/src/github.com/raul/hello-go
cd !$
wget https://gist.github.com/raul/c168e41b78e23414c3b0/raw/hello.go
cat hello.go
go install . # No output means a successful compilation
ls $GOPATH/bin
$GOPATH/bin/hello-go
export PATH=$GOPATH/bin:$PATH  ####### < Add this TODO
mkdir -p $GOPATH/src/github.com/raul/hello-package
cd !$
wget https://gist.github.com/raul/345d9443b97ac394f590/raw/hello.go
cat hello.go
go build .
go install .
ls $GOPATH/pkg/darwin_amd64/github.com/raul/hello-package.a

cd $GOPATH/src/github.com/raul/hello-go
wget -N https://gist.github.com/raul/9e46c9f1d6e4bcd9df96/raw/hello.go
cat hello.go

go install .
hello-go