normalizeLabel lowercases and replaces spaces with hyphens.
(label string)
| 39 | |
| 40 | // normalizeLabel lowercases and replaces spaces with hyphens. |
| 41 | func normalizeLabel(label string) string { |
| 42 | return strings.ReplaceAll(strings.ToLower(label), " ", "-") |
| 43 | } |
| 44 | |
| 45 | func mapField(value string, mapping map[string]string, fallback string) string { |
| 46 | if mapping != nil { |
no outgoing calls