MCPcopy Create free account
hub / github.com/prometheus/common / String

Method String

model/labels.go:167–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (l LabelNames) String() string {
168 labelStrings := make([]string, 0, len(l))
169 for _, label := range l {
170 labelStrings = append(labelStrings, string(label))
171 }
172 return strings.Join(labelStrings, ", ")
173}
174
175// A LabelValue is an associated value for a LabelName.
176type LabelValue string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected