version

package
v0.0.0-...-aeec266 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationVersion = NewVersion(0, 0, 1)

ApplicationVersion represents application version.

Functions

This section is empty.

Types

type SematicVersion

type SematicVersion struct {
	// contains filtered or unexported fields
}

SematicVersion represents version information with Sematic Versioning specification.

func NewVersion

func NewVersion(major, minor, patch uint) *SematicVersion

NewVersion initializes a new instance of SematicVersion.

func (*SematicVersion) IsEqual

func (v *SematicVersion) IsEqual(v2 *SematicVersion) bool

IsEqual returns true if version instance is equal to the second.

func (*SematicVersion) IsGreater

func (v *SematicVersion) IsGreater(v2 *SematicVersion) bool

IsGreater returns true if version instance is greater than the second.

func (*SematicVersion) IsGreaterOrEqual

func (v *SematicVersion) IsGreaterOrEqual(v2 *SematicVersion) bool

IsGreaterOrEqual returns true if version instance is greater than or equal to the second.

func (*SematicVersion) IsLess

func (v *SematicVersion) IsLess(v2 *SematicVersion) bool

IsLess returns true if version instance is less than the second.

func (*SematicVersion) IsLessOrEqual

func (v *SematicVersion) IsLessOrEqual(v2 *SematicVersion) bool

IsLessOrEqual returns true if version instance is less than or equal to the second.

func (*SematicVersion) String

func (v *SematicVersion) String() string

String returns a string that represents this instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL