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

Method AddSQLNullBool

encode_sqlnull.go:306–308  ·  view source on GitHub ↗

AddSQLNullBool adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)

(v *sql.NullBool)

Source from the content-addressed store, hash-verified

304
305// AddSQLNullBool adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)
306func (enc *Encoder) AddSQLNullBool(v *sql.NullBool) {
307 enc.Bool(v.Bool)
308}
309
310// AddSQLNullBoolOmitEmpty adds a string to be encoded or skips it if it is zero value.
311// Must be used inside a slice or array encoding (does not encode a key)

Callers 2

TestAddSQLNullBoolFunction · 0.95
UnmarshalJSONObjectMethod · 0.45

Calls 1

BoolMethod · 0.95

Tested by 2

TestAddSQLNullBoolFunction · 0.76
UnmarshalJSONObjectMethod · 0.36