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

Function ReformatString

internal/jsonwire/encode.go:150–200  ·  view source on GitHub ↗

ReformatString consumes a JSON string from src and appends it to dst, reformatting it if necessary according to the specified flags. 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 3

reformatValueMethod · 0.92
reformatObjectMethod · 0.92
appendStringMethod · 0.92

Calls 7

IsCanonicalMethod · 0.95
ConsumeStringFunction · 0.85
appendEscapedASCIIFunction · 0.85
appendEscapedUnicodeFunction · 0.85
GetMethod · 0.80
AppendUnquoteFunction · 0.70
AppendQuoteFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…