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

Method AddStringKey

encode_string.go:51–53  ·  view source on GitHub ↗

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

(key, v string)

Source from the content-addressed store, hash-verified

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) {
52 enc.StringKey(key, v)
53}
54
55// AddStringKeyOmitEmpty adds a string to be encoded or skips it if it is zero value.
56// Must be used inside an object as it will encode a key

Callers 15

AddInterfaceKeyMethod · 0.95
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80

Calls 1

StringKeyMethod · 0.95

Tested by 7

MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64