Documentation ¶
Overview ¶
Package version provides common utils to handle browser version info.
Index ¶
- type Version
- func (v *Version) Build() int64
- func (v *Version) Decrement(o *Version) Version
- func (v *Version) GetString() string
- func (v *Version) Increment(o *Version) Version
- func (v *Version) IsEqualTo(rhs Version) bool
- func (v *Version) IsNewerThan(rhs Version) bool
- func (v *Version) IsOlderThan(rhs Version) bool
- func (v *Version) IsSkewValid(ash Version) bool
- func (v *Version) IsValid() bool
- func (v *Version) Major() int64
- func (v *Version) Minor() int64
- func (v *Version) Patch() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a browser version in the format of "(major).(minor).(build).(patch)".
func (*Version) IsNewerThan ¶
IsNewerThan compares two version and returns true when lhs is newer than rhs.
func (*Version) IsOlderThan ¶
IsOlderThan compares two version and returns true when lhs is older than rhs.
func (*Version) IsSkewValid ¶
IsSkewValid returns whether it is a valid version skew that is compatible with the given ash/OS version.
Click to show internal directories.
Click to hide internal directories.