github.com/ssrathi/go-scrub (go): Package scrub implements a scrubbing utility to hide sensitive fields from a struct.  This utility can be used to purge sensitive fields from a deeply nested struct at any level. This is useful for scenarios such as logging structures which may contain user passwords, secret keys, passphrases, etc.  Notes & Caveates  Only exported fields of a struct can be scrubbed (fields starting with a capital letter). Reflect package cannot modify unexported (private) fields. Also, The input struct must be passed by its address, otherwise the values of its fields cannot be changed.  Example
Keywords: go|golang|redaction