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

Method SQLNullStringKey

encode_sqlnull.go:73–75  ·  view source on GitHub ↗

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

(key string, v *sql.NullString)

Source from the content-addressed store, hash-verified

71
72// SQLNullStringKey adds a string to be encoded, must be used inside an object as it will encode a key
73func (enc *Encoder) SQLNullStringKey(key string, v *sql.NullString) {
74 enc.StringKey(key, v.String)
75}
76
77// SQLNullStringKeyOmitEmpty adds a string to be encoded or skips it if it is zero value.
78// Must be used inside an object as it will encode a key

Callers 3

TestAddSQLNullStringKeyFunction · 0.95
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80

Calls 1

StringKeyMethod · 0.95

Tested by 1

TestAddSQLNullStringKeyFunction · 0.76