MCPcopy Create free account
hub / github.com/imroc/req / sorter

Struct sorter

internal/header/sort.go:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13type sorter struct {
14 order map[string]int
15 kvs []KeyValues
16}
17
18func (s *sorter) Len() int { return len(s.kvs) }
19func (s *sorter) Swap(i, j int) { s.kvs[i], s.kvs[j] = s.kvs[j], s.kvs[i] }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected