version

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProduction

func IsProduction(v Version) bool

func ParseVersionPart

func ParseVersionPart(part string) (int, error)

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func New

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

func ParseFromString

func ParseFromString(str string) (*Version, error)

func (*Version) Compare

func (v *Version) Compare(otherV Version) int

func (*Version) GetMajor

func (v *Version) GetMajor() int

func (*Version) GetMinor

func (v *Version) GetMinor() int

func (*Version) GetPatch

func (v *Version) GetPatch() int

func (*Version) MayBeNext

func (v *Version) MayBeNext(other *Version) bool

func (*Version) String

func (v *Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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