Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Optimize traversal browser data logic #311

Merged
merged 5 commits into from
Apr 12, 2024
Merged

Conversation

moonD4rk
Copy link
Owner

@moonD4rk moonD4rk commented Jan 31, 2024

Proposed changes

  • Refactor package names and imports for better code organization
  • Replace filepath.walk with filepath.walkdir
  • Modify browserdata data struct

Refactor package names and imports for better code organization

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit, build tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

- Refactor multiple packages to use the `DataType` package instead of `BrowserDataType`
- Rename and move several files to match new package locations
- Update function and variable names to reference `DataType` instead of `BrowserDataType`
- Fix import paths for the `types` package in multiple files
- Change map types and function signatures to use `DataType` instead of `BrowserDataType`
- Remove unused imports and constant values
- Update default `items` values in `chromiumList` and `firefoxList` to match new `DataType` format
- Refactor and standardize code across multiple files:
- Add new files and packages:
- Modify existing files:
- Update linting rules in `.golangci.yml`
- Correct some typos and print errors in logging statements.
@moonD4rk moonD4rk merged commit 2dbebaa into dev Apr 12, 2024
6 checks passed
moonD4rk added a commit that referenced this pull request Apr 12, 2024
* 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
@moonD4rk moonD4rk deleted the feat/item-refact branch April 13, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant