vercmp

package module
v0.0.0-...-6718928 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 3 Imported by: 2

README

vercmp

Go Reference

This is a simple library that compares two versions using an algorithm loosely based on the rpmvercmp algorithm.

Documentation

Overview

Package vercmp provides comparison between two arbitrary version strings. It uses a modified implementation of the rpmvercmp algorithm used by the RPM package manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(v1, v2 string) int

Compare compares two version strings. It returns 1 if v1 is greater, 0 if the versions are equal, and -1 if v2 is greater

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL