Discover Packages
go.elara.ws/vercmp
package
module
Version:
v0.0.0-...-6718928
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
vercmp
This is a simple library that compares two versions using an algorithm loosely based on the rpmvercmp
algorithm.
Expand ▾
Collapse ▴
Documentation
¶
Package vercmp provides comparison between two arbitrary version strings.
It uses a modified implementation of the rpmvercmp algorithm used by the RPM package manager.
Compare compares two version strings.
It returns 1 if v1 is greater,
0 if the versions are equal,
and -1 if v2 is greater
Source Files
¶
Click to show internal directories.
Click to hide internal directories.