expose Version.NewerThan

NewerThan is useful outside of the package
This commit is contained in:
James Bardin 2017-05-03 17:54:47 -04:00 committed by Martin Atkins
parent 7d2d951f27
commit fa49c69793
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
}