Skip to content

feat: Add support for masking fields in structs, slices, and maps #2

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

Merged
merged 3 commits into from
Dec 30, 2024

Conversation

n0l3r
Copy link
Member

@n0l3r n0l3r commented Dec 30, 2024

changes:

  • Implement MaskType constants for various masking types (asterisk, censor, email, credit card, phone, zip).
  • Add Masker struct and New constructor to initialize masker with options.
  • Implement Mask method to apply masking to fields in a struct.
  • Enhance maskRecurse method to handle nested structs, slices, arrays, and maps.
  • Add masking functions for different types (maskString, maskEmail, maskCreditCard).

@n0l3r n0l3r self-assigned this Dec 30, 2024
@n0l3r n0l3r merged commit 021624a into develop Dec 30, 2024
@n0l3r n0l3r deleted the feat/masker branch December 30, 2024 18:08
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.

1 participant