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

Function ConsumeSimpleString

internal/jsonwire/decode.go:97–110  ·  view source on GitHub ↗

ConsumeSimpleString consumes the next JSON string per RFC 7159, section 7 but is limited to the grammar for an ASCII string without escape sequences. It returns 0 if it is invalid or more complicated than a simple string, in which case [ConsumeString] should be called. It rejects '<', '>', and '&'

(b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

UnmarshalJSONFromMethod · 0.92
reformatValueMethod · 0.92
reformatObjectMethod · 0.92
copyQuotedBufferMethod · 0.92
ReadTokenMethod · 0.92
consumeValueMethod · 0.92
consumeObjectMethod · 0.92
appendStringMethod · 0.92
stringMethod · 0.92
TestConsumeStringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConsumeStringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…