MCPcopy Index your code
hub / github.com/cloudfoundry/cli / lessThan

Function lessThan

actor/pluginaction/list.go:50–62  ·  view source on GitHub ↗
(version1 string, version2 string)

Source from the content-addressed store, hash-verified

48}
49
50func lessThan(version1 string, version2 string) bool {
51 v1, err := semver.Make(version1)
52 if err != nil {
53 return false
54 }
55
56 v2, err := semver.Make(version2)
57 if err != nil {
58 return false
59 }
60
61 return v1.LT(v2)
62}

Calls 1

MakeMethod · 0.65

Tested by

no test coverage detected