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

Method String

model/value.go:353–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected