Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/uber-go/multierr
/ functions
Functions
70 in github.com/uber-go/multierr
⨍
Functions
70
◇
Types & classes
14
↓ 26 callers
Function
newMultiErr
(errors ...error)
error_test.go:58
↓ 24 callers
Function
Combine
Combine combines the passed errors into a single error. If zero arguments were passed or if all items are nil, a nil error is returned. Combine(nil
error.go:413
↓ 17 callers
Function
Append
Append appends the given errors together. Either value may be nil. This function is a specialization of Combine for the common case where there are o
error.go:435
↓ 17 callers
Method
Is
Is attempts to match the provided error against errors in the error list. This function allows errors.Is to traverse the values stored on the multier
error_pre_go120.go:52
↓ 8 callers
Function
AppendInto
AppendInto appends an error into the destination of an error pointer and returns whether the error being appended was non-nil. var err error multie
error.go:495
↓ 7 callers
Function
Close
Close builds an Invoker that closes the provided io.Closer. Use it with AppendInvoke to close io.Closers and append their results into an error. For
error.go:568
↓ 6 callers
Method
As
Versions of Go before 1.20 did not support the Unwrap() []error method. This provides a similar behavior by implementing the Is(..) and As(..) methods
error_pre_go120.go:39
↓ 6 callers
Function
Errors
Errors returns a slice containing zero or more errors that the supplied error is composed of. If the error is nil, a nil slice is returned. err := m
error.go:197
↓ 5 callers
Function
AppendInvoke
AppendInvoke appends the result of calling the given Invoker into the provided error pointer. Use it with named returns to safely defer invocation of
error.go:625
↓ 5 callers
Method
Error
()
error_test.go:427
↓ 5 callers
Function
Every
Every compares every error in the given err against the given target error using [errors.Is], and returns true only if every comparison returned true.
error.go:240
↓ 5 callers
Function
createMultiErrWithCapacity
()
error_test.go:527
↓ 5 callers
Function
errorPtr
(err error)
error_test.go:758
↓ 5 callers
Function
newCloserMock
(tb testing.TB, err error)
error_test.go:768
↓ 4 callers
Method
Errors
()
error.go:184
↓ 4 callers
Method
Errors
Errors returns the list of underlying errors. This slice MUST NOT be modified.
error.go:216
↓ 3 callers
Method
Invoke
()
error.go:517
↓ 3 callers
Function
appendN
(initial, err error, n int)
error_test.go:50
↓ 2 callers
Method
Error
()
error.go:223
↓ 2 callers
Function
extractErrors
(err error)
error_pre_go120.go:61
↓ 2 callers
Function
fromSlice
fromSlice converts the given list of errors into a single error.
error.go:339
↓ 2 callers
Method
writeSingleline
(w io.Writer)
error.go:257
↓ 1 callers
Function
AppendFunc
AppendFunc is a shorthand for [AppendInvoke]. It allows using function or method value directly without having to wrap it into an [Invoker] interface.
error.go:644
↓ 1 callers
Function
FakeCloser
(err error)
example_test.go:103
↓ 1 callers
Method
Unwrap
()
error_post_go120.go:32
↓ 1 callers
Function
inspect
Inspects the given slice of errors so that we can efficiently allocate space for it.
error.go:315
↓ 1 callers
Function
run
()
appendinvoke_example_test.go:38
↓ 1 callers
Method
writeMultiline
(w io.Writer)
error.go:269
↓ 1 callers
Function
writePrefixLine
Writes s to the writer with the given prefix added before each line after the first.
error.go:279
Function
BenchmarkAppend
(b *testing.B)
benchmarks_test.go:29
Function
BenchmarkCombine
(b *testing.B)
benchmarks_test.go:64
Method
Close
()
example_test.go:99
Method
Close
()
error_test.go:764
Method
Error
()
error_ext_test.go:35
Method
Error
()
error_ext_test.go:41
Method
Error
()
error_ext_test.go:51
Method
Error
()
error_test.go:38
Method
Errors
()
error_test.go:431
Function
ExampleAppend
()
example_test.go:47
Function
ExampleAppendInto
()
example_test.go:75
Function
ExampleAppendInvoke
()
appendinvoke_example_test.go:32
Function
ExampleClose
()
example_test.go:109
Function
ExampleCombine
()
example_test.go:31
Function
ExampleErrors
()
example_test.go:56
Method
Format
(f fmt.State, c rune)
error.go:249
Method
Format
(f fmt.State, c rune)
error_test.go:42
Method
Invoke
Invoke calls the supplied function and returns its result.
error.go:545
Method
Invoke
()
appendinvoke_example_test.go:71
Function
TestAppend
(t *testing.T)
error_test.go:351
Function
TestAppendDoesNotModify
(t *testing.T)
error_test.go:533
Function
TestAppendFunc
(t *testing.T)
error_test.go:740
Function
TestAppendInto
(t *testing.T)
error_test.go:589
Function
TestAppendIntoNil
(t *testing.T)
error_test.go:718
Function
TestAppendInvoke
(t *testing.T)
error_test.go:634
Function
TestAppendRace
(t *testing.T)
error_test.go:546
Function
TestClose
(t *testing.T)
error_test.go:705
Function
TestCombine
(t *testing.T)
error_test.go:123
Function
TestCombineDoesNotModifySlice
(t *testing.T)
error_test.go:331
Function
TestCombineGoodCaseNoAlloc
(t *testing.T)
error_test.go:343
Function
TestErrors
(t *testing.T)
error_test.go:435
Function
TestErrorsOnErrorsJoin
(t *testing.T)
error_post_go120_test.go:33
Function
TestErrorsSliceIsImmutable
(t *testing.T)
error_test.go:565
Function
TestErrorsWrapping
(t *testing.T)
error_ext_test.go:55
Function
TestErrorsWrappingSameType
(t *testing.T)
error_ext_test.go:124
Function
TestEvery
(t *testing.T)
error_test.go:62
Function
TestEveryWithErrorsJoin
(t *testing.T)
error_post_go120_test.go:44
Function
TestNilMultierror
(t *testing.T)
error_test.go:580
Method
Unwrap
()
error_ext_test.go:45
Method
Unwrap
Unwrap returns a list of errors wrapped by this multierr.
error_post_go120.go:27
Function
extractErrors
(err error)
error_post_go120.go:35