mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
refactor: Optimize traversal browser data logic (#311)
* refactor: Refactor package names and imports for better code organization. * refactor: Package imports and variable types for consistency * chore: Disable unused-parameter rule in revive. * refactor: Refactor and organize data extraction and browserdata parse. * fix: rename wrong error message info
This commit is contained in:
@@ -64,10 +64,10 @@ func CopyFile(src, dst string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ItemName returns the filename from the provided path
|
||||
func ItemName(browser, item, ext string) string {
|
||||
// Filename returns the filename from the provided path
|
||||
func Filename(browser, dataType, ext string) string {
|
||||
replace := strings.NewReplacer(" ", "_", ".", "_", "-", "_")
|
||||
return strings.ToLower(fmt.Sprintf("%s_%s.%s", replace.Replace(browser), item, ext))
|
||||
return strings.ToLower(fmt.Sprintf("%s_%s.%s", replace.Replace(browser), dataType, ext))
|
||||
}
|
||||
|
||||
func BrowserName(browser, user string) string {
|
||||
|
||||
Reference in New Issue
Block a user