sem_ver

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Greater      = ">"
	Less         = "<"
	Equal        = "="
	GreaterEqual = ">="
	LessEqual    = "<="
)

Variables

View Source
var OperatorMap = map[string]struct{}{
	Greater:      {},
	Less:         {},
	Equal:        {},
	GreaterEqual: {},
	LessEqual:    {},
}

Functions

func CompareSemVer added in v0.8.0

func CompareSemVer(v, w string) (int, error)

func InSemVerRange

func InSemVerRange(r string, v string) (bool, error)

func IsValidSemVer

func IsValidSemVer(s string) bool

func ValidateSemVerRange

func ValidateSemVerRange(s string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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