You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Package rework
Added
Add New and NewFromError to replace old NewErrorsBuffer and NewBufferFromError
Add multiple errors handling into Add method.
Add Format processing, adding support for %s, %v and %+v verbs.
Add Clear method to empty internal buffer.
Add Grow method to grow internal buffer up to N items capacity.
Removed
Remove warnings buffer.
Reworked
Rework Error() method output to be a single line by default.
Rework Err() method, it will have to check errors on nil-ness since by adding multiple errors it's now possible to store nil values inside the internal buffer.
Rework NewBufferFromWarning to panic on call, since warnings were removed as a concept.