pii

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PIIDetector

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

func NewPIIDetector

func NewPIIDetector() *PIIDetector

func (*PIIDetector) Detect

func (d *PIIDetector) Detect(input string) []PIIFinding

func (*PIIDetector) HasPII

func (d *PIIDetector) HasPII(input string) bool

func (*PIIDetector) Redact

func (d *PIIDetector) Redact(input string) string

type PIIFinding

type PIIFinding struct {
	Type     string `json:"type"`
	Match    string `json:"match"`
	Position int    `json:"position"`
	Redacted string `json:"redacted"`
}

Jump to

Keyboard shortcuts

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