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

Function New

attributes/attributes.go:47–52  ·  view source on GitHub ↗

New returns a new Attributes containing the key/value pair.

(key, value any)

Source from the content-addressed store, hash-verified

45
46// New returns a new Attributes containing the key/value pair.
47func New(key, value any) *Attributes {
48 return &Attributes{
49 key: key,
50 value: value,
51 }
52}
53
54// WithValue returns a new Attributes containing the previous keys and values
55// and the new key/value pair. If the same key appears multiple times, the

Calls

no outgoing calls