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

Method String

model/value.go:306–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304type Vector []*Sample
305
306func (vec Vector) String() string {
307 entries := make([]string, len(vec))
308 for i, s := range vec {
309 entries[i] = s.String()
310 }
311 return strings.Join(entries, "\n")
312}
313
314func (vec Vector) Len() int { return len(vec) }
315func (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