version

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverSize = errors.New("Too large version number")
View Source
var ErrOverflowSection = errors.New("Too long version sections")

Functions

func Equal

func Equal(v1, v2 string) bool

func GreaterThan

func GreaterThan(v1, v2 string) bool

func LessThan

func LessThan(v1, v2 string) bool

Types

type SemVer added in v0.3.2

type SemVer struct {
	Major int
	Minor int
	Patch int
}

func Parse added in v0.3.2

func Parse(s string) (v *SemVer)

Parse

func (SemVer) NextMajor added in v0.3.2

func (v SemVer) NextMajor() *SemVer

func (SemVer) NextMinor added in v0.3.2

func (v SemVer) NextMinor() *SemVer

func (SemVer) NextPatch added in v0.3.2

func (v SemVer) NextPatch() *SemVer

func (*SemVer) NumberString added in v0.3.2

func (v *SemVer) NumberString() string

func (*SemVer) String added in v0.3.2

func (v *SemVer) String() string

type T

type T = byte

func Compare

func Compare(v1, v2 string) (result T, err error)

Jump to

Keyboard shortcuts

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