MCPcopy Create free account
hub / github.com/francoispqt/gojay / StringNull

Method StringNull

decode_string.go:253–260  ·  view source on GitHub ↗

StringNull decodes the JSON value within an object or an array to a **string. If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. If a `null` is encountered, gojay does not change the value of the pointer.

(v **string)

Source from the content-addressed store, hash-verified

251// If next key is not a JSON string nor null, InvalidUnmarshalError will be returned.
252// If a `null` is encountered, gojay does not change the value of the pointer.
253func (dec *Decoder) StringNull(v **string) error {
254 err := dec.decodeStringNull(v)
255 if err != nil {
256 return err
257 }
258 dec.called |= 1
259 return nil
260}

Callers 3

AddStringNullMethod · 0.95
SQLNullStringMethod · 0.95
TestDecoderStringNullFunction · 0.80

Calls 1

decodeStringNullMethod · 0.95

Tested by 1

TestDecoderStringNullFunction · 0.64