MCPcopy Create free account
hub / github.com/wailsapp/wails / Less

Method Less

v2/internal/github/semver.go:98–100  ·  view source on GitHub ↗

Less is needed for the sort interface to compare two Version objects on the slice. If checks if one is less than the other.

(i, j int)

Source from the content-addressed store, hash-verified

96// Less is needed for the sort interface to compare two Version objects on the
97// slice. If checks if one is less than the other.
98func (c SemverCollection) Less(i, j int) bool {
99 return c[i].Version.LessThan(c[j].Version)
100}
101
102// Swap is needed for the sort interface to replace the Version objects
103// at two different positions in the slice.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected