Documentation ¶
Index ¶
- func CompareVersion(a string, b string) int
- func IsVersion(v string) bool
- func IsVersionConstraint(c string) bool
- func MatchConstraintsVersions(c []string, v []string) []string
- func MatchVersionConstrains(c []string, v string) bool
- func MatchVersionConstraint(c string, v string) bool
- func MaxVersion(c string, v ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersion ¶
CompareVersion compare version a and b. If a greater then b, return 1 If a less then b, return -1 Else return 0
func IsVersionConstraint ¶
IsVersionConstraint return c is a version constraint or not
func MatchConstraintsVersions ¶
MatchConstraintsVersions return versions in v which match all contraints in c
func MatchVersionConstrains ¶
MatchVersionConstrains return version v is match all constraints in c or not
func MatchVersionConstraint ¶
MatchVersionConstraint return v is match constraint c or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.