version

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationVersion = NewVersion(0, 3, 5)

ApplicationVersion represents application version.

Functions

This section is empty.

Types

type SemanticVersion

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

SemanticVersion represents version information with Semantic Versioning specifications.

func NewVersion

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

NewVersion initializes a new instance of SemanticVersion.

func (*SemanticVersion) IsEqual

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

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

func (*SemanticVersion) IsGreater

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

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

func (*SemanticVersion) IsGreaterOrEqual

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

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

func (*SemanticVersion) IsLess

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

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

func (*SemanticVersion) IsLessOrEqual

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

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

func (*SemanticVersion) String

func (v *SemanticVersion) 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