Source File
labelset.go
Belonging Package
github.com/prometheus/common/model
package model
import (
)
type LabelSet map[LabelName]LabelValue
func ( LabelSet) ( LabelSet) LabelSet {
:= make(LabelSet, len())
for , := range {
[] =
}
for , := range {
[] =
}
return
}
func ( LabelSet) () string {
:= make([]string, 0, len())
for , := range {
= append(, fmt.Sprintf("%s=%q", , ))
}
sort.Strings()
return fmt.Sprintf("{%s}", strings.Join(, ", "))
}
func ( LabelSet) () Fingerprint {
return labelSetToFingerprint()
}
func ( LabelSet) () Fingerprint {
return labelSetToFastFingerprint()
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |