Created
November 28, 2011 01:16
-
-
Save mbarkhau/1398675 to your computer and use it in GitHub Desktop.
command to compile and run go files
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
#!/usr/bin/env bash | |
if [ "$1" ]; then | |
$GOBIN/gofmt -w -s=true $1 | |
$GOBIN/gofix $1 | |
$GOBIN/6g -o $1.6 $1 | |
$GOBIN/6l -o $1.bin $1.6 | |
$PWD/$1.bin | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment