()
| 309 | } |
| 310 | |
| 311 | func (ls Labels) MapKey() SeriesMapKey { |
| 312 | key := SeriesMapKey{} |
| 313 | for i := range ls { |
| 314 | key[i] = SeriesMapLabel{Name: ls[i].Name, Value: ls[i].Value.MapKey()} |
| 315 | } |
| 316 | return key |
| 317 | } |
| 318 | |
| 319 | // Add returns a copy of the labels with the given label added to the end. |
| 320 | func (ls Labels) Add(label Label) Labels { |
no outgoing calls