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

Method BoolNull

decode_bool.go:234–241  ·  view source on GitHub ↗

BoolNull decodes the JSON value within an object or an array to a *bool. If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned. If next key is null, bool will be false.

(v **bool)

Source from the content-addressed store, hash-verified

232// If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned.
233// If next key is null, bool will be false.
234func (dec *Decoder) BoolNull(v **bool) error {
235 err := dec.decodeBoolNull(v)
236 if err != nil {
237 return err
238 }
239 dec.called |= 1
240 return nil
241}

Callers 3

AddBoolNullMethod · 0.95
SQLNullBoolMethod · 0.95
TestDecoderBoolNullFunction · 0.80

Calls 1

decodeBoolNullMethod · 0.95

Tested by 1

TestDecoderBoolNullFunction · 0.64