versions

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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 Max

func Max() Version

func Min

func Min() Version

func New

func New(major int, minor int, patch int) (v 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) IsZero

func (ver Version) IsZero() (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