###set global $GOPATH ~/.zshrc && add bin folder
export GOPATH="$HOME/projects/golang"
export PATH="$GOPATH/bin:$PATH"
###install gonew & golint
go get github.com/bmatsuo/gonew
go get github.com/golang/lint/golint
###install direnv
brew install direnv
ZSH Add the following line at the end of the "~/.zshrc" file:
eval "$(direnv hook zsh)"
edit config file, change user information & ExternalTemplates path add template file to templates folder
####in Makefile must be tabs, not spaces
new project:
gonew cmd goplay1