sortlib

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sortlib contains tools for producing sorted _copies_ of various golang types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByBytes

func ByBytes(s string) string

Bytes returns a sorted copy of the string, in ascending order (by bytes).

func ByRunes

func ByRunes(s string) string

Runes returns a sorted copy of the string, in ascending order (by runes).

func Bytes

func Bytes(a []byte) []byte

Bytes creates a sorted copy of the slice of bytes

func Float64

func Float64(a []float64) []float64

Float64 creates a sorted copy of the slice of float64s

func Int

func Int(a []int) []int

Int creates a sorted copy of the slice of ints.

func Int64

func Int64(a []int64) []int64

Int64 creates a sorted copy of the slice of int64s

func Runes

func Runes(a []rune) []rune

Runes creates a sorted copy of the slice of runes

func Uint

func Uint(a []uint) []uint

Uint creates a sorted copy of the slice of uints.

func Uint64

func Uint64(a []uint64) []uint64

Uint64 creates a sorted copy of the slice of uint64s

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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