semver

package
v1.0.76 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(v string, w string) int

Compare compares two semantic versions Returns 0 if v == w, -1 if v < w, or +1 if v > w.

func IsValid

func IsValid(version string) bool

IsValid returns true if this is a valid semantic version

func MinorBump

func MinorBump(version string) (string, error)

MinorBump bumps the minor version of a semantic version. Eg. MinorBump("1.2.3") -> "1.3.0"

Types

This section is empty.

Jump to

Keyboard shortcuts

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