TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 srathi大约 3 年前
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>

暂无评论

暂无评论