MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / encodeMapStringInterfaceValue

Function encodeMapStringInterfaceValue

encode_map.go:85–94  ·  view source on GitHub ↗
(e *Encoder, v reflect.Value)

Source from the content-addressed store, hash-verified

83}
84
85func encodeMapStringInterfaceValue(e *Encoder, v reflect.Value) error {
86 if v.IsNil() {
87 return e.EncodeNil()
88 }
89 m := v.Convert(mapStringInterfaceType).Interface().(map[string]interface{})
90 if e.flags&sortMapKeysFlag != 0 {
91 return e.EncodeMapSorted(m)
92 }
93 return e.EncodeMap(m)
94}
95
96func (e *Encoder) EncodeMap(m map[string]interface{}) error {
97 if m == nil {

Callers

nothing calls this directly

Calls 3

EncodeNilMethod · 0.80
EncodeMapSortedMethod · 0.80
EncodeMapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…