feat: add macOS Chrome parse

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-06-23 10:42:10 +08:00
parent 14ad36e6db
commit 5bfa781466
3 changed files with 79 additions and 31 deletions
+8 -1
View File
@@ -12,7 +12,6 @@ const (
LoginData = "Login Data"
History = "History"
Cookies = "Cookies"
WebData = "Web Data"
Bookmarks = "Bookmarks"
)
@@ -46,6 +45,14 @@ func RemoveFile() {
}
func IntToBool(a int) bool {
switch a {
case 0, -1:
return false
}
return true
}
func TimeEpochFormat(epoch int64) time.Time {
t := time.Date(1601, 1, 1, 0, 0, 0, 0, time.UTC)
d := time.Duration(epoch)