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

Method Copy

metadata/metadata.go:99–105  ·  view source on GitHub ↗

Copy returns a copy of md.

()

Source from the content-addressed store, hash-verified

97
98// Copy returns a copy of md.
99func (md MD) Copy() MD {
100 out := make(MD, len(md))
101 for k, v := range md {
102 out[k] = copyOf(v)
103 }
104 return out
105}
106
107// Get obtains the values for a given key.
108//

Callers 15

copyFilesFunction · 0.80
keepReadingFunction · 0.80
HeaderMethod · 0.80
writeStatusMethod · 0.80
writeHeaderMethod · 0.80
HeaderMethod · 0.80
TrailerMethod · 0.80
writeHeaderLockedMethod · 0.80
writeStatusMethod · 0.80
operateHeadersMethod · 0.80
handleRequestMethod · 0.80

Calls 1

copyOfFunction · 0.85

Tested by 3

copyFilesFunction · 0.64
keepReadingFunction · 0.64
TestCopyMethod · 0.64