MCPcopy
hub / github.com/grpc/grpc-go / Append

Method Append

metadata/metadata.go:130–136  ·  view source on GitHub ↗

Append adds the values to key k, not overwriting what was already stored at that key. k is converted to lowercase before storing in md.

(k string, vals ...string)

Source from the content-addressed store, hash-verified

128//
129// k is converted to lowercase before storing in md.
130func (md MD) Append(k string, vals ...string) {
131 if len(vals) == 0 {
132 return
133 }
134 k = strings.ToLower(k)
135 md[k] = append(md[k], vals...)
136}
137
138// Delete removes the values for a given key k which is converted to lowercase
139// before removing it from md.

Callers 6

PickMethod · 0.80
TestAppendMethod · 0.80
unaryInterceptorFunction · 0.80
streamInterceptorFunction · 0.80
TestGetLabelsMethod · 0.80

Calls

no outgoing calls

Tested by 3

PickMethod · 0.64
TestAppendMethod · 0.64
TestGetLabelsMethod · 0.64