package settings type AppVersion struct { MajorVersion uint MinorVersion uint Patch uint IsBeta bool } func (base *AppVersion) IsGreaterThan(other *AppVersion) bool { return base.MajorVersion > other.MajorVersion || base.MinorVersion > other.MinorVersion || base.Patch > other.Patch } func (base *AppVersion) IsEqualTo(other *AppVersion) bool { return base.MajorVersion == other.MajorVersion && base.MinorVersion == other.MinorVersion && base.Patch == other.Patch } func (base *AppVersion) IsLessThan(other *AppVersion) bool { return base.MajorVersion < other.MajorVersion && base.MinorVersion < other.MinorVersion && base.Patch < other.Patch } func (base *AppVersion) IsCompatible() bool { return Current.Version.MajorVersion >= base.MajorVersion && Current.Version.MinorVersion >= base.MinorVersion && Current.Version.Patch >= base.Patch }