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

Method AddStringKeyNullEmpty

encode_string.go:63–65  ·  view source on GitHub ↗

AddStringKeyNullEmpty adds a string to be encoded or skips it if it is zero value. Must be used inside an object as it will encode a key

(key, v string)

Source from the content-addressed store, hash-verified

61// AddStringKeyNullEmpty adds a string to be encoded or skips it if it is zero value.
62// Must be used inside an object as it will encode a key
63func (enc *Encoder) AddStringKeyNullEmpty(key, v string) {
64 enc.StringKeyNullEmpty(key, v)
65}
66
67// String adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)
68func (enc *Encoder) String(v string) {

Callers 1

Calls 1

StringKeyNullEmptyMethod · 0.95

Tested by 1