redact

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redact

func Redact(input string) (string, error)

Types

type Pattern

type Pattern struct {
	Regex       string `json:"regex"`
	Replacement string `json:"replacement"`
}

type Redactor

type Redactor struct {
	// contains filtered or unexported fields
}

func NewRedactor

func NewRedactor(extraPatterns []Pattern) (*Redactor, error)

func NewRedactorFromFile

func NewRedactorFromFile(path string) (*Redactor, error)

func (*Redactor) Redact

func (r *Redactor) Redact(input string) (string, error)

Jump to

Keyboard shortcuts

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