Has checks whether a specific metadata key is present.
(key string)
| 208 | |
| 209 | // Has checks whether a specific metadata key is present. |
| 210 | func (m Metadata) Has(key string) bool { |
| 211 | _, ok := m.Get(key) |
| 212 | return ok |
| 213 | } |
| 214 | |
| 215 | // Get the value set for key. |
| 216 | func (m Metadata) Get(key string) (string, bool) { |