versions

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 7

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 `json:"major"`
	Minor int `json:"minor"`
	Patch int `json:"patch"`
}

func Latest added in v1.0.10

func Latest() Version

func New

func New(major int, minor int, patch int) (v Version)

func Origin added in v1.0.10

func Origin() Version

func Parse

func Parse(v string) (ver Version, err error)

func (Version) Between

func (ver Version) Between(left Version, right Version) (ok bool)

func (Version) Equals added in v1.0.10

func (ver Version) Equals(o Version) (ok bool)

func (Version) IsLatest added in v1.0.10

func (ver Version) IsLatest() (ok bool)

func (Version) IsOrigin added in v1.0.10

func (ver Version) IsOrigin() (ok bool)

func (Version) LessThan added in v1.0.5

func (ver Version) LessThan(o Version) (ok bool)

func (Version) String

func (ver Version) String() (v string)

Jump to

Keyboard shortcuts

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