version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const INCREASE = -1

/ Special constants indicating should increase current version by 1

View Source
const KEEP = -2

Special constants indicating should keep current version

Variables

This section is empty.

Functions

func ParseVersionNumber

func ParseVersionNumber(s string) (int, error)

Types

type Version

type Version struct {
	Major      int
	Minor      int
	Patch      int
	Prerelease string
	Build      string
}

func Parse

func Parse(s string) (*Version, error)

func (*Version) BumpMajor

func (v *Version) BumpMajor(ver int)

func (*Version) BumpMinor

func (v *Version) BumpMinor(ver int)

func (*Version) BumpPatch

func (v *Version) BumpPatch(ver int)

func (*Version) Equal

func (v *Version) Equal(v2 *Version) bool

func (*Version) GreaterThan

func (v *Version) GreaterThan(v2 *Version) bool

func (*Version) LessThan

func (v *Version) LessThan(v2 *Version) bool

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

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