Registry / utility / hashicorp-go-multierror

hashicorp-go-multierror

JSON →
library1.1.1gogounverified

Provides a mechanism for representing a list of errors as a single error value.

go get github.com/hashicorp/go-multierror
INSTALL
IMPORT
SIG · HASHICORP-GO-MULTI
H
hashicorp-go-multierror
utilitygov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

multierror
github.com/hashicorp/go-multierror

Combines multiple errors into one and prints them.

package main import ( "fmt" "github.com/hashicorp/go-multierror" ) func main() { var result error result = multierror.Append(result, fmt.Errorf("error 1")) result = multierror.Append(result, fmt.Errorf("error 2")) fmt.Println(result.Error()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hashicorp-go-multierror — go get hashicorp-go-multierror · libregistry