Registry / utility / hashicorp-go-version

hashicorp-go-version

JSON →
library1.9.0gogounverified

A library for parsing and comparing semantic versions.

go get github.com/hashicorp/go-version
INSTALL
IMPORT
SIG · HASHICORP-GO-VERSI
H
hashicorp-go-version
utilitygov1.9.0
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/hashicorp/go-version

Parse and compare two versions.

package main import ( "fmt" "github.com/hashicorp/go-version" ) func main() { v1, _ := version.NewVersion("1.2.3") v2, _ := version.NewVersion("1.2.4") fmt.Println(v1.LessThan(v2)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.9.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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