MCPcopy Create free account
hub / github.com/segmentio/encoding / with

Function with

thrift/error.go:55–65  ·  view source on GitHub ↗
(base, elem error)

Source from the content-addressed store, hash-verified

53func (e *decodeError) Unwrap() error { return e.base }
54
55func with(base, elem error) error {
56 if errors.Is(base, io.EOF) {
57 return base
58 }
59 e, _ := base.(*decodeError)
60 if e == nil {
61 e = &decodeError{base: base}
62 }
63 e.path = append(e.path, elem)
64 return e
65}
66
67type decodeErrorField struct {
68 cause Field

Callers 7

decodeFuncSliceOfFunction · 0.85
decodeFuncMapOfFunction · 0.85
decodeFuncMapAsSetOfFunction · 0.85
readListFunction · 0.85
readSetFunction · 0.85
readMapFunction · 0.85
readStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…