MCPcopy Create free account
hub / github.com/cli/cli / Len

Method Len

context/remote.go:74–74  ·  view source on GitHub ↗

https://golang.org/pkg/sort/#Interface

()

Source from the content-addressed store, hash-verified

72
73// https://golang.org/pkg/sort/#Interface
74func (r Remotes) Len() int { return len(r) }
75func (r Remotes) Swap(i, j int) { r[i], r[j] = r[j], r[i] }
76func (r Remotes) Less(i, j int) bool {
77 return remoteNameSortScore(r[i].Name) > remoteNameSortScore(r[j].Name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected