MCPcopy Index your code

hub / github.com/uber-go/multierr / functions

Functions70 in github.com/uber-go/multierr

↓ 26 callersFunctionnewMultiErr
(errors ...error)
error_test.go:58
↓ 24 callersFunctionCombine
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 callersFunctionAppend
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 callersMethodIs
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 callersFunctionAppendInto
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 callersFunctionClose
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 callersMethodAs
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 callersFunctionErrors
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 callersFunctionAppendInvoke
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 callersMethodError
()
error_test.go:427
↓ 5 callersFunctionEvery
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 callersFunctioncreateMultiErrWithCapacity
()
error_test.go:527
↓ 5 callersFunctionerrorPtr
(err error)
error_test.go:758
↓ 5 callersFunctionnewCloserMock
(tb testing.TB, err error)
error_test.go:768
↓ 4 callersMethodErrors
()
error.go:184
↓ 4 callersMethodErrors
Errors returns the list of underlying errors. This slice MUST NOT be modified.
error.go:216
↓ 3 callersMethodInvoke
()
error.go:517
↓ 3 callersFunctionappendN
(initial, err error, n int)
error_test.go:50
↓ 2 callersMethodError
()
error.go:223
↓ 2 callersFunctionextractErrors
(err error)
error_pre_go120.go:61
↓ 2 callersFunctionfromSlice
fromSlice converts the given list of errors into a single error.
error.go:339
↓ 2 callersMethodwriteSingleline
(w io.Writer)
error.go:257
↓ 1 callersFunctionAppendFunc
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 callersFunctionFakeCloser
(err error)
example_test.go:103
↓ 1 callersMethodUnwrap
()
error_post_go120.go:32
↓ 1 callersFunctioninspect
Inspects the given slice of errors so that we can efficiently allocate space for it.
error.go:315
↓ 1 callersFunctionrun
()
appendinvoke_example_test.go:38
↓ 1 callersMethodwriteMultiline
(w io.Writer)
error.go:269
↓ 1 callersFunctionwritePrefixLine
Writes s to the writer with the given prefix added before each line after the first.
error.go:279
FunctionBenchmarkAppend
(b *testing.B)
benchmarks_test.go:29
FunctionBenchmarkCombine
(b *testing.B)
benchmarks_test.go:64
MethodClose
()
example_test.go:99
MethodClose
()
error_test.go:764
MethodError
()
error_ext_test.go:35
MethodError
()
error_ext_test.go:41
MethodError
()
error_ext_test.go:51
MethodError
()
error_test.go:38
MethodErrors
()
error_test.go:431
FunctionExampleAppend
()
example_test.go:47
FunctionExampleAppendInto
()
example_test.go:75
FunctionExampleAppendInvoke
()
appendinvoke_example_test.go:32
FunctionExampleClose
()
example_test.go:109
FunctionExampleCombine
()
example_test.go:31
FunctionExampleErrors
()
example_test.go:56
MethodFormat
(f fmt.State, c rune)
error.go:249
MethodFormat
(f fmt.State, c rune)
error_test.go:42
MethodInvoke
Invoke calls the supplied function and returns its result.
error.go:545
MethodInvoke
()
appendinvoke_example_test.go:71
FunctionTestAppend
(t *testing.T)
error_test.go:351
FunctionTestAppendDoesNotModify
(t *testing.T)
error_test.go:533
FunctionTestAppendFunc
(t *testing.T)
error_test.go:740
FunctionTestAppendInto
(t *testing.T)
error_test.go:589
FunctionTestAppendIntoNil
(t *testing.T)
error_test.go:718
FunctionTestAppendInvoke
(t *testing.T)
error_test.go:634
FunctionTestAppendRace
(t *testing.T)
error_test.go:546
FunctionTestClose
(t *testing.T)
error_test.go:705
FunctionTestCombine
(t *testing.T)
error_test.go:123
FunctionTestCombineDoesNotModifySlice
(t *testing.T)
error_test.go:331
FunctionTestCombineGoodCaseNoAlloc
(t *testing.T)
error_test.go:343
FunctionTestErrors
(t *testing.T)
error_test.go:435
FunctionTestErrorsOnErrorsJoin
(t *testing.T)
error_post_go120_test.go:33
FunctionTestErrorsSliceIsImmutable
(t *testing.T)
error_test.go:565
FunctionTestErrorsWrapping
(t *testing.T)
error_ext_test.go:55
FunctionTestErrorsWrappingSameType
(t *testing.T)
error_ext_test.go:124
FunctionTestEvery
(t *testing.T)
error_test.go:62
FunctionTestEveryWithErrorsJoin
(t *testing.T)
error_post_go120_test.go:44
FunctionTestNilMultierror
(t *testing.T)
error_test.go:580
MethodUnwrap
()
error_ext_test.go:45
MethodUnwrap
Unwrap returns a list of errors wrapped by this multierr.
error_post_go120.go:27
FunctionextractErrors
(err error)
error_post_go120.go:35