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

Method String

model/value.go:285–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283type Vector []*Sample
284
285func (vec Vector) String() string {
286 entries := make([]string, len(vec))
287 for i, s := range vec {
288 entries[i] = s.String()
289 }
290 return strings.Join(entries, "\n")
291}
292
293func (vec Vector) Len() int { return len(vec) }
294func (vec Vector) Swap(i, j int) { vec[i], vec[j] = vec[j], vec[i] }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected