()
| 130 | } |
| 131 | |
| 132 | func (l LabelSet) String() string { |
| 133 | lstrs := make([]string, 0, len(l)) |
| 134 | for l, v := range l { |
| 135 | lstrs = append(lstrs, fmt.Sprintf("%s=%q", l, v)) |
| 136 | } |
| 137 | |
| 138 | sort.Strings(lstrs) |
| 139 | return fmt.Sprintf("{%s}", strings.Join(lstrs, ", ")) |
| 140 | } |
| 141 | |
| 142 | // Fingerprint returns the LabelSet's fingerprint. |
| 143 | func (ls LabelSet) Fingerprint() Fingerprint { |
nothing calls this directly
no outgoing calls
no test coverage detected