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

Method SQLNullString

encode_sqlnull.go:54–56  ·  view source on GitHub ↗

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

(v *sql.NullString)

Source from the content-addressed store, hash-verified

52
53// SQLNullString adds a string to be encoded, must be used inside an object as it will encode a key
54func (enc *Encoder) SQLNullString(v *sql.NullString) {
55 enc.String(v.String)
56}
57
58// SQLNullStringOmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key
59func (enc *Encoder) SQLNullStringOmitEmpty(v *sql.NullString) {

Callers 3

TestAddSQLNullStringFunction · 0.95
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

StringMethod · 0.95

Tested by 1

TestAddSQLNullStringFunction · 0.76