-
Notifications
You must be signed in to change notification settings - Fork 47
Add redact struct tag for automatic field redaction during Unpack #224
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
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
99a0e69
Initial plan
Copilot 0b9c4d7
Add redact struct tag option and Redact() method
Copilot e3ac05c
Fix trailing whitespace issues
Copilot c41c2e8
Add additional tests for inline structs and idempotency
Copilot 27b3d9e
Run go fmt
3901bc5
use const as redacted value
64cb9fb
Implement option-based redact approach with ShowRedacted option
Copilot b440e52
Address code review feedback - fix metadata logic and improve test na…
Copilot 554578d
Add documentation for redact tag and ShowRedacted option
Copilot a87cfbb
Remove Redact method and associated tests
Copilot fcda4b5
Restrict redaction tag to string and []byte types only
Copilot baaa541
Run go fmt
213a0a2
Move redaction from New/Merge to Unpack and add []rune support
Copilot 32cfb51
Rename tests and fix comments to reflect Unpack-based redaction
Copilot ab7754d
Fix ShowRedacted comment in opts.go to reflect Unpack-time redaction
Copilot eb636e3
Apply review suggestion, use switch statements
71bb76d
Add unit test for custom types with redaction
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.