Documentation ¶
Index ¶
- type ByColumns
- func (c *ByColumns) Len() int
- func (c *ByColumns) Less(i, j int) bool
- func (c *ByColumns) LessAge(a, b *Person) comparison
- func (c *ByColumns) LessName(a, b *Person) comparison
- func (c *ByColumns) LessSumOfAgeDigits(a, b *Person) comparison
- func (c *ByColumns) Select(cmp columnCmp)
- func (c *ByColumns) Swap(i, j int)
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByColumns ¶
type ByColumns struct {
// contains filtered or unexported fields
}
ByColumns sorts by a specified column
func NewByColumns ¶
NewByColumns creates a new ByColumns type
func (*ByColumns) LessSumOfAgeDigits ¶
LessSumOfAgeDigits compares ages
Click to show internal directories.
Click to hide internal directories.