package multierror

import "github.com/coreos/pkg/multierror"

Package multierror wraps a slice of errors and implements the error interface. This can be used to collect a bunch of errors (such as during form validation) and then return them all together as a single error. To see usage examples refer to the unit tests.

Index

Types

type Error

type Error []error

func (Error) AsError

func (me Error) AsError() error

func (Error) Error

func (me Error) Error() string

Source Files

multierror.go

Version
v0.0.0-20240122114842-bbd7aa9bf6fb (latest)
Published
Jan 22, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
2 weeks ago

Tools for package owners.