sort

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strings = sort.Strings

Strings sorts a slice of strings in increasing order.

Functions

func StringsByHex

func StringsByHex(x []string)

StringsByHex sorts a slice of strings according to their big-endian Hex value. This function panics in the event that an element in the slice cannot be converted to a Hex slice. Each string representation of a hex value must be of even length.

func StringsByInt

func StringsByInt(x []string)

StringsByInt sorts a slice of strings according to their integer value. This function panics in the event that an element in the slice cannot be converted to an integer

Types

type StringSlice

type StringSlice func(x []string)

Strings is a function type used to sort a slice of strings in increasing order. Any errors which arise from sorting the slice will raise a panic.

Jump to

Keyboard shortcuts

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