semver

package
v1.117.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortVersions

func SortVersions(versions SemverSortable)

Modified bubble sort: instead of comparing adjacent elements, compare the elements at the semvers only. Input is assumed to be sorted by sequence so non-semver elements are already in correct order.

Types

type SemverSortable

type SemverSortable interface {
	Len() int
	GetSemver(i int) *semver.Version
	GetSequence(i int) int64
	Swap(i, j int)
}

Jump to

Keyboard shortcuts

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