Go Lang

Set up

1
brew install go
2
mkdir -p ~/src/go
3
ln -s ~/src/go ~/go
Copied!

Inside .bash_profile

1
[[ -d $HOME/src/go/ ]] && export GOPATH=$HOME/src/go/
Copied!

Others

1
export GOPATH=$(go env GOPATH)
2
export PATH=$PATH:$(go env GOPATH)/bin
Copied!

Pros

  • gofmt

Cons

  • Uses tabs for identation

Editorconfig

GraphQL

length

1
len("/view/")
Copied!

Best Practices

Examples

Wiki

Last modified 3yr ago