hashicorp / go-multierror

A Go (golang) package for representing a list of errors as a single error.
Mozilla Public License 2.0
2.3k stars 123 forks source link

Add an AppendNoFlatten helper function #31

Closed mentalisttraceur closed 1 year ago

mentalisttraceur commented 4 years ago

Fixes/implements #5 at the logical/data level, pairs well with #30 to also fix #5 at the default string presentation level.

In #5 I initially proposed a different solution to this, but after letting it cook in my mind for a couple weeks I think this way is a better user interface.

Feedback or suggestions for how to do this differently are very much welcome.