Documentation
¶
Overview ¶
Package sort provides a mockable wrapper for sort.
Index ¶
- type Impl
- func (*Impl) Float64s(x []float64)
- func (*Impl) Float64sAreSorted(x []float64) bool
- func (*Impl) Ints(x []int)
- func (*Impl) IntsAreSorted(x []int) bool
- func (*Impl) IsSorted(data sort.Interface) bool
- func (*Impl) Reverse(data sort.Interface) sort.Interface
- func (*Impl) Search(n int, f func(int) bool) int
- func (*Impl) SearchFloat64s(a []float64, x float64) int
- func (*Impl) SearchInts(a []int, x int) int
- func (*Impl) SearchStrings(a []string, x string) int
- func (*Impl) Slice(x any, less func(i int, j int) bool)
- func (*Impl) SliceIsSorted(x any, less func(i int, j int) bool) bool
- func (*Impl) SliceStable(x any, less func(i int, j int) bool)
- func (*Impl) Sort(data sort.Interface)
- func (*Impl) Stable(data sort.Interface)
- func (*Impl) Strings(x []string)
- func (*Impl) StringsAreSorted(x []string) bool
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) Float64sAreSorted ¶
func (*Impl) IntsAreSorted ¶
func (*Impl) StringsAreSorted ¶
type Interface ¶
type Interface interface { Float64s(x []float64) Float64sAreSorted(x []float64) bool Ints(x []int) IntsAreSorted(x []int) bool IsSorted(data sort.Interface) bool Reverse(data sort.Interface) sort.Interface Search(n int, f func(int) bool) int SearchFloat64s(a []float64, x float64) int SearchInts(a []int, x int) int SearchStrings(a []string, x string) int Slice(x any, less func(i int, j int) bool) SliceIsSorted(x any, less func(i int, j int) bool) bool SliceStable(x any, less func(i int, j int) bool) Sort(data sort.Interface) Stable(data sort.Interface) Strings(x []string) StringsAreSorted(x []string) bool }
Click to show internal directories.
Click to hide internal directories.