Releases: tlmanz/hush
v0.2.3
v0.2.2
Release v0.2.2
We're excited to announce the release of version 0.2.2! This update includes several bug fixes and minor improvements to enhance your experience.
What's New
- Basic Data types slices and array items are supported
For a full list of changes, please check our changelog.
If you encounter any issues or have suggestions, please don't hesitate to open a PR.
v0.2.1
Release v0.2.1
We're excited to announce the release of version 0.2.1! This update includes several bug fixes and minor improvements to enhance your experience.
What's New
- Non-composite data type masking is enabled
- Prefix support for non-composite data type masking is streamlined
- Masking options for non-composite data types are added (hush.TagMask & hush.TagHide)
Improvements
- Added single-instance initialization
For a full list of changes, please check our changelog.
If you encounter any issues or have suggestions, please don't hesitate to open a PR.
v0.2.0
Hush v0.2.0
The initial release of Hush, a Go package for processing and masking sensitive data in structs and strings.
Features
- Mask or hide sensitive information in
structs
and strings - Customizable field separators and masking functions
- Concurrent processing of struct fields
- Support for nested structures, maps, and slices
- Option to include/exclude private fields
- Context-aware processing with cancellation support
Installation
go get github.com/tlmanz/hush
Quick Start
husher, _ := hush.NewHush(myStruct)
result, _ := husher.Hush(context.Background(), "",
hush.WithSeparator("_"),
hush.WithMaskFunc(customMask),
)
Examples
Check the examples
folder for usage scenarios:
- Basic usage
- Custom options
- Complex structs
- Table output
- Private fields
License
MIT License
For more details, see the README and documentation.