#!/bin/sh

set -e

while true; do
	go run main.go -w -dev
	if [ $? != 0 ] ; then
		exit
	fi
	echo restarting
done
#!/bin/sh

set -e

while true; do
	time go install
	mog -w -dev
	if [ $? != 0 ] ; then
		exit
	fi
	echo restarting
done
Use go install instead of go run
Use go install instead of go run

Appears to be faster.
