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

Method AddBoolKey

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

AddBoolKey adds a bool to be encoded, must be used inside an object as it will encode a key.

(key string, v bool)

Source from the content-addressed store, hash-verified

44
45// AddBoolKey adds a bool to be encoded, must be used inside an object as it will encode a key.
46func (enc *Encoder) AddBoolKey(key string, v bool) {
47 enc.BoolKey(key, v)
48}
49
50// AddBoolKeyOmitEmpty adds a bool to be encoded and skips if it is zero value.
51// Must be used inside an object as it will encode a key.

Callers 5

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

Calls 1

BoolKeyMethod · 0.95

Tested by 4

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