Tags: wego/pkg
Tags
Add support for array string masking with [] pattern (#192) * logger: support array string masking with [] Enable masking arrays containing string values using the pattern ["property", "[]"]. Refactor maskArrayRecursive to use switch statement for better readability and add maskAllStringValues helper function. * logger: refactor maskArrayRecursive readability Extract switch case logic into focused single-responsibility functions with descriptive names and godoc comments. Replace complex boolean conditions with self-documenting variables. Improves maintainability by separating concerns and making each function handle one specific JSON key pattern. * logger: simplify array masking logic Remove maskArrayContents function which duplicated logic in maskAllStringValues. Simplify maskAllStringValues to only mask strings and ignore non-string items rather than recursively processing nested arrays. This eliminates unnecessary complexity since the ["property", "[]"] pattern should only mask strings within the target array.
Add context handling (#191) * Add comprehensive context handling tests - Add table-driven tests for Error context functionality - Test context propagation, overrides, and edge cases - Verify child context cleanup after propagation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Add tests for context parameter in New function - Add table-driven tests for context.Context parameter support in New() - Test context propagation with child errors via New parameter - Test mixed usage of New parameter and WithContext method - Verify edge cases like empty contexts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * add more tc. --------- Co-authored-by: mysqto <my@mysq.to> Co-authored-by: Claude <noreply@anthropic.com>
Add context handling (#191) * Add comprehensive context handling tests - Add table-driven tests for Error context functionality - Test context propagation, overrides, and edge cases - Verify child context cleanup after propagation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Add tests for context parameter in New function - Add table-driven tests for context.Context parameter support in New() - Test context propagation with child errors via New parameter - Test mixed usage of New parameter and WithContext method - Verify edge cases like empty contexts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * add more tc. --------- Co-authored-by: mysqto <my@mysq.to> Co-authored-by: Claude <noreply@anthropic.com>
Add `UpdateSelective` (#189) Co-authored-by: mysqto <my@mysq.to>
PAY-1863-vc-route-caching-and-admin (#183) * PAY-1863-vc-route-caching-and-admin - added Intersect function in collection.go - added tests https://wegomushi.atlassian.net/browse/PAY-1863 * PAY-1863-vc-route-caching-and-admin - upgraded go version to 1.24
PAY-1837-payfast-webhook (#184) * PAY-1837-payfast-webhook - added mask and redact for URL query params - added tests - upgraded go version to 1.24 https://wegomushi.atlassian.net/browse/PAY-1837 * PAY-1837-payfast-webhook - fixed lint * PAY-1837-payfast-webhook - refactor to directly accept query params instead of url * PAY-1837-payfast-webhook - fixed lint * PAY-1837-payfast-webhook - cleanup
add `random` selector (#178) * add `random` selector * update * fix action * fix lint * use `runtime.rand` instead of `SplitMix64`
PreviousNext