Created
January 6, 2013 10:26
-
-
Save miekg/4466456 to your computer and use it in GitHub Desktop.
run go test, when the file end in _test.go otherwise go build. Use in vim: autocmd Filetype go set makeprg=gobuildtest\ %
This file contains 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/zsh | |
filename=$1;shift | |
case $filename in | |
*_test.go) go test "$@";; | |
*) go build "$@";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment