Skip to content

Instantly share code, notes, and snippets.

@mbarkhau
Created November 28, 2011 01:16
Show Gist options
  • Save mbarkhau/1398675 to your computer and use it in GitHub Desktop.
Save mbarkhau/1398675 to your computer and use it in GitHub Desktop.
command to compile and run go files
#!/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