Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Comparable interface {
Compare(Comparable) int
}
Comparable represents a type which is comparable.
type Comparables ¶
type Comparables []Comparable
Comparables represents []Comparable .
func (Comparables) Less ¶
func (cs Comparables) Less(i, j int) bool
Less is to implements Sort.Interface .
func (*Comparables) Shift ¶
func (cs *Comparables) Shift() Comparable
Shift removes the fisrt element and returns it.
func (Comparables) Swap ¶
func (cs Comparables) Swap(i, j int)
Swap is to implements Sort.Interface .
type IntComparable ¶
type IntComparable int
IntComparable represents a comparable int.
func (IntComparable) Compare ¶
func (ic IntComparable) Compare(i Comparable) int
Compare implements the Comparable interface.
Click to show internal directories.
Click to hide internal directories.