Go-scrub is a utility to mask a given set of field names from a deeply nested struct at any level. It is useful for logging structs which may have customer inputs (such as passwords, keys, etc.). It uses the "reflect" package to modify the struct values at runtime.<p>Code: <a href="https://github.com/ssrathi/go-scrub" rel="nofollow">https://github.com/ssrathi/go-scrub</a><p>Blog post with an explanation: <a href="https://www.nutanix.dev/2022/04/22/golang-the-art-of-reflection/" rel="nofollow">https://www.nutanix.dev/2022/04/22/golang-the-art-of-reflect...</a>