Registry /
utility / aquasecurity-go-version
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/aquasecurity/go-version
Compare two versions using go-version.
package main
import (
"fmt"
"github.com/aquasecurity/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
0.0.0-20210121072130-637058cfe492latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.