Skip to content

uber-go/multierr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cf4b232 · Apr 29, 2024

History

76 Commits
Apr 29, 2024
Oct 11, 2023
Jun 9, 2017
Oct 29, 2019
Mar 29, 2023
May 6, 2021
May 6, 2021
Feb 15, 2023
Aug 12, 2022
Feb 28, 2022
Oct 11, 2023
Oct 27, 2020
Oct 11, 2023
May 6, 2021
Oct 11, 2023
Feb 15, 2023

Repository files navigation

multierr GoDoc Build Status Coverage Status

multierr allows combining one or more Go errors together.

Features

  • Idiomatic: multierr follows best practices in Go, and keeps your code idiomatic.
    • It keeps the underlying error type hidden, allowing you to deal in error values exclusively.
    • It provides APIs to safely append into an error from a defer statement.
  • Performant: multierr is optimized for performance:
    • It avoids allocations where possible.
    • It utilizes slice resizing semantics to optimize common cases like appending into the same error object from a loop.
  • Interoperable: multierr interoperates with the Go standard library's error APIs seamlessly:
    • The errors.Is and errors.As functions just work.
  • Lightweight: multierr comes with virtually no dependencies.

Installation

go get -u go.uber.org/multierr@latest

Status

Stable: No breaking changes will be made before 2.0.


Released under the MIT License.