distrosort

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names(distros []string) error

Names sorts the given list of distro names by name, version taking version semantics into account (i.e. sorting 8.1 lower then 8.10).

Invalid version numbers will create errors but the sorting continue and invalid numbers are sorted lower than anything else (so the result is still usable in a {G,T}UI).

Note that full semantic versioning (see semver.org) is not supported today but it would be once the underlying distroid parser supports better spliting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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