MCPcopy Create free account
hub / github.com/danderson/netboot / Less

Method Less

scripts/prune_old_versions/main.go:99–99  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

97
98func (m metaSort) Len() int { return len(m) }
99func (m metaSort) Less(i, j int) bool { return m[i].Created.Before(m[j].Created) }
100func (m metaSort) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
101
102func packageVersions(user, repo, typ, distro, version, pkgname, arch string) ([]string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected