Skip to content

v0.2.0

Compare
Choose a tag to compare
@tlmanz tlmanz released this 13 Aug 13:44
· 9 commits to main since this release

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.