With returns a new Metadata, setting key to value. It is O(n) over the size of Metadata and allocates.
(key string, val string)
| 202 | // |
| 203 | // It is O(n) over the size of Metadata and allocates. |
| 204 | func (m Metadata) With(key string, val string) Metadata { |
| 205 | m.Set(key, val) |
| 206 | return m |
| 207 | } |
| 208 | |
| 209 | // Has checks whether a specific metadata key is present. |
| 210 | func (m Metadata) Has(key string) bool { |