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

Method Swap

model/value.go:156–158  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

154}
155
156func (s Samples) Swap(i, j int) {
157 s[i], s[j] = s[j], s[i]
158}
159
160// Equal compares two sets of samples and returns true if they are equal.
161func (s Samples) Equal(o Samples) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected