MCPcopy
hub / github.com/uptrace/uptrace / AppendMapInterfaceInterface

Function AppendMapInterfaceInterface

pkg/msgp/append.go:161–177  ·  view source on GitHub ↗
(b []byte, m map[any]any, flags AppendFlags)

Source from the content-addressed store, hash-verified

159 return b
160}
161func AppendMapInterfaceInterface(b []byte, m map[any]any, flags AppendFlags) (_ []byte, err error) {
162 if m == nil {
163 return AppendNil(b), nil
164 }
165 b = AppendMapLen(b, len(m))
166 for k, v := range m {
167 b, err = Append(b, k, flags)
168 if err != nil {
169 return b, err
170 }
171 b, err = Append(b, v, flags)
172 if err != nil {
173 return b, err
174 }
175 }
176 return b, nil
177}
178func AppendMapStringInterface(b []byte, m map[string]any, flags AppendFlags) (_ []byte, err error) {
179 if m == nil {
180 return AppendNil(b), nil

Callers 1

Calls 3

AppendNilFunction · 0.85
AppendMapLenFunction · 0.85
AppendFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…