Registry / utility / mcuadros-go-version

mcuadros-go-version

JSON →
library0.0.0-20190830083331-035f6764e8d2gogounverified

A version normalizer and comparison library for Go, heavily based on PHP's version_compare function and Composer version comparison.

go get github.com/mcuadros/go-version
INSTALL
IMPORT
SIG · MCUADROS-GO-VERSIO
M
mcuadros-go-version
utilitygov0.0.0-20190830083331-035f6764e8d2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

version
github.com/mcuadros/go-version

Compare two version strings.

package main import ( "fmt" "github.com/mcuadros/go-version" ) func main() { result := version.Compare("1.2.3", "1.2.4", ">") fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190830083331-035f6764e8d2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
mcuadros-go-version — go get mcuadros-go-version · libregistry