version

package
v3.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppVersion = "3.8.4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version defines the components of version number.

func Parse

func Parse(s string) (Version, error)

Parse constructs the version from a string.

func ParseTag

func ParseTag(tag string) (Version, error)

ParseTag constructs the version from a tag name.

func (Version) IsLessThan added in v3.7.0

func (v Version) IsLessThan(another Version) bool

IsLessThan returns true if the current version is less than the compared version.

func (Version) String

func (v Version) String() string

String returns the string representation of version number, e.g. "1.0.0".

func (Version) ToTag

func (v Version) ToTag() string

ToTag returns the associated tag name of the version, e.g. "v1.0.0".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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