mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
feat: sort output by timestamp
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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]
|
||||
}
|
||||
Reference in New Issue
Block a user