You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
232 B
14 lines
232 B
4 years ago
|
package core
|
||
|
|
||
|
func (l LoginDataSlice) Len() int {
|
||
|
return len(l)
|
||
|
}
|
||
|
|
||
|
func (l LoginDataSlice) Less(i, j int) bool {
|
||
|
return l[i].CreateDate.After(l[j].CreateDate)
|
||
|
}
|
||
|
|
||
|
func (l LoginDataSlice) Swap(i, j int) {
|
||
|
l[i], l[j] = l[j], l[i]
|
||
|
}
|