version

package
v0.0.0-...-90f2f4c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConstraint

func CheckConstraint(ver, constraint string) (bool, error)

CheckConstraint returns whether version fulfills given constraint.

func MasterVersion

func MasterVersion(v string) bool

MasterVersion returns whether provided version string originates from master branch.

func Short

func Short(v string) string

Short excludes any metadata or pre-release information. For example, for a version "1.2.3-20200101.b41b3dbs1b", it will return "1.2.3". If provided string isn't version, it will return input string.

func TransformReleaseCandidate

func TransformReleaseCandidate(v string) string

TransformReleaseCandidate replaces `.rcX` in version string with `~` instead of the dot.

func TrimMaster

func TrimMaster(v string) string

TrimMaster returns version string without master branch bloat breaking semantic format constraints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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