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

Method reformatValue

jsontext/encode.go:668–711  ·  view source on GitHub ↗

reformatValue parses a JSON value from the start of src and appends it to the end of dst, reformatting whitespace and strings as needed. It returns the extended dst buffer and the number of consumed input bytes.

(dst []byte, src Value, depth int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

WriteValueMethod · 0.95
reformatObjectMethod · 0.95
reformatArrayMethod · 0.95

Calls 14

reformatObjectMethod · 0.95
reformatArrayMethod · 0.95
ConsumeNullFunction · 0.92
ConsumeLiteralFunction · 0.92
ConsumeFalseFunction · 0.92
ConsumeTrueFunction · 0.92
ConsumeSimpleStringFunction · 0.92
ReformatStringFunction · 0.92
ConsumeSimpleNumberFunction · 0.92
ReformatNumberFunction · 0.92
NewInvalidCharacterErrorFunction · 0.92
KindTypeAlias · 0.85

Tested by

no test coverage detected