release

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	GoStyle = Style(1)
)
View Source
const Type = version.Type("release")

Variables

View Source
var ErrNotValidVersion = errors.New("not a valid version")
View Source
var ErrVersionDoesNotMatchFilter = errors.New("version does not match filter")

Functions

This section is empty.

Types

type Style

type Style int

type Version

type Version struct {
	Major int
	Minor int
	Patch int
	Style Style
}

func Parse

func Parse(s string) (v Version, err error)

func (Version) IsSemanticNewer

func (v Version) IsSemanticNewer(filter filter.Filter, v2 Version) (newer bool, err error)

func (Version) IsStrictlySemanticNewer

func (v Version) IsStrictlySemanticNewer(filter filter.Filter, v2 Version) bool

func (Version) Matches

func (v Version) Matches(f filter.Filter) 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