package
Version:
v0.3.8
Opens a new window with list of versions in this module.
Published: Jul 5, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsValid checks if a version string is valid according to semantic versioning
It requires exactly major.minor.patch and handles v-prefixed versions
Version represents a semantic version (SemVer)
Parse parses a version string into a Version struct
Compare compares this version to another version.
Returns -1 if v < other, 0 if v == other, or 1 if v > other.
Satisfies checks if this version satisfies the given constraint
String returns the string representation of the version
Source Files
¶
Click to show internal directories.
Click to hide internal directories.