expose Version.NewerThan
NewerThan is useful outside of the package
This commit is contained in:
parent
7d2d951f27
commit
fa49c69793
|
@ -100,7 +100,7 @@ func (s PluginMetaSet) Newest() PluginMeta {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
if first == true || version.newerThan(winnerVersion) {
|
||||
if first == true || version.NewerThan(winnerVersion) {
|
||||
winner = p
|
||||
winnerVersion = version
|
||||
first = false
|
||||
|
|
|
@ -32,6 +32,6 @@ func (v Version) String() string {
|
|||
return v.raw.String()
|
||||
}
|
||||
|
||||
func (v Version) newerThan(other Version) bool {
|
||||
func (v Version) NewerThan(other Version) bool {
|
||||
return v.raw.GreaterThan(other.raw)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue