Documentation ¶ Index ¶ func Redact(input string) (string, error) type Pattern type Redactor func NewRedactor(extraPatterns []Pattern) (*Redactor, error) func NewRedactorFromFile(path string) (*Redactor, error) func (r *Redactor) Redact(input string) (string, error) 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) Source Files ¶ View all Source files redact.go Click to show internal directories. Click to hide internal directories.