Masks fields in JSON.
- Masks specified fields.
- Masks with specified string.
- Masks at deep position.
- Logging a request body includes secret fields in API server.
- Logging a DB record includes secret fields.
go get -u github.com/syoya/go-masker
See example