Documentation
¶
Overview ¶
Package redact includes helpers to redact or transform sensitive content in files, used by fix/remediation commands in the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(path string, reps []Replacement) (bool, error)
Apply applies replacements to a file on disk. Returns true if changed.
func WouldChange ¶
func WouldChange(path string, reps []Replacement) (bool, error)
WouldChange returns true if applying replacements would modify the file, without writing.
Types ¶
type Replacement ¶
Click to show internal directories.
Click to hide internal directories.