version

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Major      = VersionType("MAJOR")
	Minor      = VersionType("MINOR")
	Patch      = VersionType("PATCH")
	Prerelease = VersionType("PRERELEASE")
)

Variables

View Source
var (
	ErrNotValidVersion    = errors.New("Version provided is not a valid semver")
	ErrNotValidPrerelease = errors.New("Version provided is not a valid prerelease")
)

Functions

func FindNextVersion

func FindNextVersion(t VersionType, v string) (string, error)

func GetVersionPriority

func GetVersionPriority(v VersionType) int

Types

type VersionType

type VersionType string

func ParseVersionType

func ParseVersionType(versionType string) (VersionType, error)

Jump to

Keyboard shortcuts

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