diff --git a/version/version.go b/version/version.go index bd5ec7a..c001279 100644 --- a/version/version.go +++ b/version/version.go @@ -37,6 +37,11 @@ func (v Version) compareTo(other Version) int { return 0 } +// String returns the version string +func (v Version) String() string { + return string(v) +} + // LessThan checks if a version is less than another func (v Version) LessThan(other Version) bool { return v.compareTo(other) == -1