TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Go-scrub: Scrubbing sensitive fields from a deeply nested Go struct

1 pointsby srathiabout 3 years ago
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 &quot;reflect&quot; package to modify the struct values at runtime.<p>Code: <a href="https:&#x2F;&#x2F;github.com&#x2F;ssrathi&#x2F;go-scrub" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ssrathi&#x2F;go-scrub</a><p>Blog post with an explanation: <a href="https:&#x2F;&#x2F;www.nutanix.dev&#x2F;2022&#x2F;04&#x2F;22&#x2F;golang-the-art-of-reflection&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.nutanix.dev&#x2F;2022&#x2F;04&#x2F;22&#x2F;golang-the-art-of-reflect...</a>

no comments

no comments