I ran into a similar issue. Removing the semi-colon fixed the error.
// The Semi-colon throws 'missing condition in if statement' if r_err != nil; { fmt.Println(r_err.Error()) return false }