Registry / utility / knqyf263-go-deb-version

knqyf263-go-deb-version

JSON →
library0.0.0-20230223133812-3ed183d23422gogounverified

A Go library for parsing and comparing Debian package versions.

go get github.com/knqyf263/go-deb-version
INSTALL
IMPORT
SIG · KNQYF263-GO-DEB-VE
K
knqyf263-go-deb-version
utilitygov0.0.0-20230223133812-3ed183d23422
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.

debversion
github.com/knqyf263/go-deb-version

Compare two Debian package versions.

package main import ( "fmt" "github.com/knqyf263/go-deb-version" ) func main() { v1, _ := debversion.NewVersion("1.0-1") v2, _ := debversion.NewVersion("2.0-1") fmt.Println(v1.LessThan(v2)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230223133812-3ed183d23422latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Meta
1
Resources
knqyf263-go-deb-version — go get knqyf263-go-deb-version · libregistry