Documentation
¶
Overview ¶
Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Sorting using a general interface
Index ¶
- func Float64sAreSorted(a []float64) bool
- func IntsAreSorted(a []int) bool
- func IsSorted(data Interface) bool
- func Sort(data Interface)
- func SortFloat64s(a []float64)
- func SortInts(a []int)
- func SortStrings(a []string)
- func StringsAreSorted(a []string) bool
- type Float64Array
- type IntArray
- type Interface
- type StringArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64sAreSorted ¶
func IntsAreSorted ¶
func SortFloat64s ¶
func SortFloat64s(a []float64)
func SortStrings ¶
func SortStrings(a []string)
func StringsAreSorted ¶
Types ¶
type Float64Array ¶
type Float64Array []float64
func (Float64Array) Len ¶
func (p Float64Array) Len() int
func (Float64Array) Less ¶
func (p Float64Array) Less(i, j int) bool
func (Float64Array) Swap ¶
func (p Float64Array) Swap(i, j int)
type StringArray ¶
type StringArray []string
func (StringArray) Len ¶
func (p StringArray) Len() int
func (StringArray) Less ¶
func (p StringArray) Less(i, j int) bool
func (StringArray) Swap ¶
func (p StringArray) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.