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

Method AddSQLNullBoolKey

encode_sqlnull.go:319–321  ·  view source on GitHub ↗

AddSQLNullBoolKey adds a string to be encoded, must be used inside an object as it will encode a key

(key string, v *sql.NullBool)

Source from the content-addressed store, hash-verified

317
318// AddSQLNullBoolKey adds a string to be encoded, must be used inside an object as it will encode a key
319func (enc *Encoder) AddSQLNullBoolKey(key string, v *sql.NullBool) {
320 enc.BoolKey(key, v.Bool)
321}
322
323// AddSQLNullBoolKeyOmitEmpty adds a string to be encoded or skips it if it is zero value.
324// Must be used inside an object as it will encode a key

Callers 1

TestAddSQLNullBoolKeyFunction · 0.95

Calls 1

BoolKeyMethod · 0.95

Tested by 1

TestAddSQLNullBoolKeyFunction · 0.76