version

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Breaking

func Breaking(current, target, purlType string) bool

Breaking reports whether moving from current to target crosses a major boundary. For zero-major versions in ecosystems that treat 0.x minors as breaking (npm, cargo, golang), a minor change also counts.

func Compare

func Compare(a, b string) int

Compare returns -1, 0 or 1. It is an approximation that works for semver, PEP 440 release segments, Maven, dpkg and rpm EVR. A trailing alphabetic segment ranks lower than its absence (1.0.0-rc1 < 1.0.0); a trailing numeric segment ranks higher (1.0 < 1.0-1).

func Less

func Less(a, b string) bool

func Major

func Major(v string) (uint64, bool)

func Minor

func Minor(v string) (uint64, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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