version

package
v0.0.0-...-f9c6b4f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
	Pre   string

	Commit string
}

func GetCurrent

func GetCurrent() (Version, error)

func GetFromRev

func GetFromRev(rev string) (Version, error)

func Parse

func Parse(desc string) (Version, error)

func (Version) IsStable

func (v Version) IsStable() bool

func (Version) RPMRelease

func (v Version) RPMRelease() string

func (Version) String

func (v Version) String() string

func (Version) StringWithoutPre

func (v Version) StringWithoutPre() string

Jump to

Keyboard shortcuts

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