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

Function ExampleWithUnmarshalers_rawNumber

example_test.go:467–498  ·  view source on GitHub ↗

In some applications, the exact precision of JSON numbers needs to be preserved when unmarshaling. This can be accomplished using a type-specific unmarshal function that intercepts all any types and pre-populates the interface value with a [jsontext.Value], which can represent a JSON number exactly.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

UnmarshalFunction · 0.92
WithUnmarshalersFunction · 0.92
UnmarshalFromFuncFunction · 0.92
ValueTypeAlias · 0.92
PeekKindMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…