Documentation ¶
Index ¶
- type SortedList
- func (sor *SortedList) DecodeList(data interface{}) error
- func (sor *SortedList) GroupSorted(group string, column string, orderDesc bool) *SortedList
- func (sor *SortedList) Len() int
- func (sor *SortedList) Less(i, j int) bool
- func (sor *SortedList) LoadData(data interface{}) *SortedList
- func (sor *SortedList) Sorted(column string, orderDesc bool) *SortedList
- func (sor *SortedList) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedList ¶
type SortedList struct { List []map[string]interface{} // 数据本体 ColumnType string // 要排序的类型 // contains filtered or unexported fields }
SortedList 排序用数组
func (*SortedList) DecodeList ¶
func (sor *SortedList) DecodeList(data interface{}) error
DecodeList 将列表赋值出去, 需要传递指针类型参数
func (*SortedList) GroupSorted ¶
func (sor *SortedList) GroupSorted(group string, column string, orderDesc bool) *SortedList
func (*SortedList) LoadData ¶
func (sor *SortedList) LoadData(data interface{}) *SortedList
LoadData 加载数据
func (*SortedList) Sorted ¶
func (sor *SortedList) Sorted(column string, orderDesc bool) *SortedList
Sorted 根据指定的字段和排序规则进行排序
Click to show internal directories.
Click to hide internal directories.