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

Function collapseSemanticErrors

errors.go:304–313  ·  view source on GitHub ↗

collapseSemanticErrors collapses double SemanticErrors at the outer levels into a single SemanticError by preserving the inner error, but prepending the ByteOffset and JSONPointer with the outer error. For example: collapseSemanticErrors(&SemanticError{ ByteOffset: len64(`[0,{"alpha":[0,1,`),

(err error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

MarshalFuncFunction · 0.85
UnmarshalFuncFunction · 0.85
makeMethodArshalerFunction · 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…