// getErrors simply gets the errors from the context (it's kind of a chore) func getErrors(context martini.Context) Errors { return context.Get(reflect.TypeOf(Errors{})).Interface().(Errors) }