Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type By ¶
type By interface {
Less(a, b record.Record) bool
// String must return human readable format for debug
String() string
}
By is base interface for sorting
type ByWithOrder ¶ added in v0.1.0
type ByWithOrder interface {
By
// contains filtered or unexported methods
}
ByWithOrder wrapper for By interface with order (ASC/DESC) ByWithOrder can't be implemented in user level, use Asc() and Desc() for wrap By implementation
func Asc ¶ added in v0.1.0
func Asc(by By) ByWithOrder
Asc wrap by for sorting in ASC (Ascending) direction
func Desc ¶ added in v0.1.0
func Desc(by By) ByWithOrder
Desc wrap by for sorting in DESC (Descending) direction
Click to show internal directories.
Click to hide internal directories.