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

Method AddStringNullEmpty

encode_string.go:46–48  ·  view source on GitHub ↗

AddStringNullEmpty adds a string to be encoded or skips it if it is zero value. Must be used inside a slice or array encoding (does not encode a key)

(v string)

Source from the content-addressed store, hash-verified

44// AddStringNullEmpty adds a string to be encoded or skips it if it is zero value.
45// Must be used inside a slice or array encoding (does not encode a key)
46func (enc *Encoder) AddStringNullEmpty(v string) {
47 enc.StringNullEmpty(v)
48}
49
50// AddStringKey adds a string to be encoded, must be used inside an object as it will encode a key
51func (enc *Encoder) AddStringKey(key, v string) {

Callers 1

Calls 1

StringNullEmptyMethod · 0.95

Tested by 1