MCPcopy Create free account
hub / github.com/go-json-experiment/json / newUnmarshalErrorBefore

Function newUnmarshalErrorBefore

errors.go:138–147  ·  view source on GitHub ↗

newUnmarshalErrorBefore wraps err in a SemanticError assuming that d is positioned right before the next token or value, which causes an error. It does not record the next JSON kind as this error is used to indicate the receiving Go value is invalid to unmarshal into (and not a JSON error). However,

(d *jsontext.Decoder, t reflect.Type, err error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

makeStructArshalerFunction · 0.85
makeInvalidArshalerFunction · 0.85
UnmarshalDecodeFunction · 0.85

Calls 8

PointerTypeAlias · 0.92
toUnexpectedEOFFunction · 0.85
GetMethod · 0.80
DecoderMethod · 0.80
PeekKindMethod · 0.45
InputOffsetMethod · 0.45
AppendStackPointerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…