version

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 41

Documentation

Index

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
}

func NewVersion

func NewVersion(version string) *Version

func (*Version) AtLeast

func (v *Version) AtLeast(minVersion string) bool

Returns true if this version is larger or equals from the version sent as an argument.

func (*Version) Compare

func (v *Version) Compare(ver1 string) int

If ver1 == version returns 0 If ver1 > version returns 1 If ver1 < version returns -1

func (*Version) GetVersion

func (v *Version) GetVersion() string

func (*Version) SetVersion

func (v *Version) SetVersion(version string)

Jump to

Keyboard shortcuts

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