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

Method String

model/value.go:352–364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
351
352func (mat Matrix) String() string {
353 matCp := make(Matrix, len(mat))
354 copy(matCp, mat)
355 sort.Sort(matCp)
356
357 strs := make([]string, len(matCp))
358
359 for i, ss := range matCp {
360 strs[i] = ss.String()
361 }
362
363 return strings.Join(strs, "\n")
364}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected