redact

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redact

func Redact(input string) string

Redact replaces known secret patterns in input with [REDACTED]. Line structure is preserved — the number of newlines in the output always equals the number of newlines in the input.

func RedactFile

func RedactFile(path string) (string, error)

RedactFile reads a file, redacts its content, and returns the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL