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

Method AddString

encode_string.go:34–36  ·  view source on GitHub ↗

AddString adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)

(v string)

Source from the content-addressed store, hash-verified

32
33// AddString adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)
34func (enc *Encoder) AddString(v string) {
35 enc.String(v)
36}
37
38// AddStringOmitEmpty adds a string to be encoded or skips it if it is zero value.
39// Must be used inside a slice or array encoding (does not encode a key)

Callers 1

AddInterfaceMethod · 0.95

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected