Create goal.go

A solution which is likely more idiomatic Go.