Created
February 20, 2016 06:18
-
-
Save garukun/3cffc5d2f46822e50a50 to your computer and use it in GitHub Desktop.
Bash commands for Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GO | |
export GOPATH=~/developments/go | |
export PATH=$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin | |
# Go vendor feature. | |
export GO15VENDOREXPERIMENT=1 | |
devgo() { | |
cd ~/developments/go/src/github.com/$@ | |
} | |
gofmtall() { | |
go fmt $(go list ./... | grep -v vendor) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment