Documentation
¶
Overview ¶
Package versioncmp compares the versions of the tools the drivers depend on, as "lxc-info --version" or "virsh --version" print them.
Those are no semantic versions: a distribution appends its own suffix, as "5.0.0~git2209-g5a7b9ce67" or "4.0.12-0ubuntu1~20.04.1", so only the numeric components are compared.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare returns -1, 0 or 1 as the version a is older than, the same as, or newer than the version b. A component one has and the other has not is compared to 0, so 2.1 and 2.1.0 are the same.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.