(v any)
| 642 | } |
| 643 | |
| 644 | func valueAsString(v any) string { |
| 645 | switch t := v.(type) { |
| 646 | case string: |
| 647 | return t |
| 648 | case fmt.Stringer: |
| 649 | return t.String() |
| 650 | default: |
| 651 | return "" |
| 652 | } |
| 653 | } |
| 654 | |
| 655 | func labelFor(metadata map[string]any) string { |
| 656 | if metadata == nil { |
no test coverage detected