mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-06-04 19:48:01 +02:00
feat: add cli options
This commit is contained in:
@@ -40,7 +40,7 @@ func (c *ChromiumBookmark) Parse(masterKey []byte) error {
|
||||
return true
|
||||
})
|
||||
}
|
||||
// TODO: 使用泛型重构
|
||||
// TODO: refactor with go generics
|
||||
sort.Slice(*c, func(i, j int) bool {
|
||||
return (*c)[i].DateAdded.After((*c)[j].DateAdded)
|
||||
})
|
||||
@@ -95,7 +95,9 @@ func (f *FirefoxBookmark) Parse(masterKey []byte) error {
|
||||
defer os.Remove(item.TempFirefoxBookmark)
|
||||
defer keyDB.Close()
|
||||
_, err = keyDB.Exec(closeJournalMode)
|
||||
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
bookmarkRows, err = keyDB.Query(queryFirefoxBookMark)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user