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

Function ReformatNumber

internal/jsonwire/encode.go:241–290  ·  view source on GitHub ↗

ReformatNumber consumes a JSON number from src and appends it to dst, canonicalizing it if specified. It returns the appended output and the number of consumed input bytes.

(dst, src []byte, flags *jsonflags.Flags)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

reformatValueMethod · 0.92
appendNumberMethod · 0.92

Calls 3

ConsumeNumberFunction · 0.85
GetMethod · 0.80
AppendFloatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…