This doesn't compile with Go v1.0 due to the overzealous requirement that every non-void function ends with a return statement. See http://golang.org/doc/go1.1#return for the behaviour change in 1.1. Ideally, this would compile against 1.0 and 1.1, and if you want to update the Travis config to reflect this, that would be fab!