version

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(constraint, version string) bool

Check returns true if the version satisfies the constraint.

Types

type Constraint

type Constraint []constraint

Constraint represents a version constraint.

func NewConstraint

func NewConstraint(v string) (Constraint, error)

NewConstraint returns a new version constraint.

func (Constraint) Check

func (c Constraint) Check(v string) bool

Check returns true if the version satisfies the constraint.

Jump to

Keyboard shortcuts

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