version

package module
v0.0.0-...-5649d79 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 1 Imported by: 0

README

version

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion

func CompareVersion(a string, b string) int

CompareVersion compare version a and b. If a greater then b, return 1 If a less then b, return -1 Else return 0

func IsVersion

func IsVersion(v string) bool

IsVersion return v is a version string or not

func IsVersionConstraint

func IsVersionConstraint(c string) bool

IsVersionConstraint return c is a version constraint or not

func MatchConstraintsVersions

func MatchConstraintsVersions(c []string, v []string) []string

MatchConstraintsVersions return versions in v which match all contraints in c

func MatchVersionConstrains

func MatchVersionConstrains(c []string, v string) bool

MatchVersionConstrains return version v is match all constraints in c or not

func MatchVersionConstraint

func MatchVersionConstraint(c string, v string) bool

MatchVersionConstraint return v is match constraint c or not

func MaxVersion

func MaxVersion(c string, v ...string) (string, error)

MaxVersion return max version in v array If c is not empty and is a valid version constraint, the returned max version must match c constraint

Types

This section is empty.

Jump to

Keyboard shortcuts

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