Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConstraint ¶ added in v3.1.0
Returns true if the given revision is not an exact semver and can be parsed as a semver constraint
func MaxVersion ¶
MaxVersion returns the highest version tag satisfying revision, optionally scoped to a tag prefix. If tagPrefix is non-empty, only tags with that prefix are considered; the prefix is stripped before semver comparison and re-added to the returned value. Exact versions and non-constraint strings are returned as-is (with prefix prepended) without consulting the tag list. Returns an error if revision is a constraint and no matching tag is found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.