Created
October 24, 2016 19:44
-
-
Save abraithwaite/c7f95e954c24ba24e80036fc0d7505f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ErrorSet []error | |
func (es ErrorSet) Error() string { | |
return errors.New("Error(s) encountered while processing. First error encountered was: %v") | |
} | |
func (s NodeName) FieldName(errs ErrorSet) FieldType { | |
... | |
if err != nil { | |
errs = append(errs, err) | |
return FieldType{} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment