version

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractVersion

func ExtractVersion(versionString string) (rv int64, err error)

ExtractVersion picks out the semantic vesion from a version string and returns it as a 64 bit integer. It is assumed that versions are limited to 0..10000.

func SemanticVersion

func SemanticVersion(versionString, cmp, to string) (rv bool)

SemanticVersion returns true if the cmp operator is true between the versionString and the "to" string. cmp operator is one of ">", ">=", "<", "<=", "==", "!=". Version strings are of the form ".* v[0-9]+.[0-9]+.[0-9]+[ .*]?" to strings are of the form [0-9]+.[0-9]+.[0-9]+

Types

This section is empty.

Jump to

Keyboard shortcuts

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