package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 29, 2024
License: BSD-2-Clause
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
¶
Compare compares two version
comp := compareSemVer(v1, v2)
if comp < 0 {
fmt.Println("v1 < v2")
} else if comp > 0 {
fmt.Println("v1 > v2")
} else {
fmt.Println("v1 == v2")
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.