Skip to content

v1.2.0

Choose a tag to compare

@emar-kar emar-kar released this 13 Jan 13:57
· 22 commits to main since this release
23a18a9

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.

Updated

  • Update language version to v1.22