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

Method String

model/value.go:331–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
330
331func (m Matrix) String() string {
332 matCp := make(Matrix, len(m))
333 copy(matCp, m)
334 sort.Sort(matCp)
335
336 strs := make([]string, len(matCp))
337
338 for i, ss := range matCp {
339 strs[i] = ss.String()
340 }
341
342 return strings.Join(strs, "\n")
343}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected