tests

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaskCard

func MaskCard(cells []string) []string

MaskCard masks credit card-like numbers, keeping only the last four digits visible.

func MaskEmail

func MaskEmail(cells []string) []string

MaskEmail masks email addresses in a slice of strings, replacing all but the first character of the local part with asterisks.

func MaskPassword

func MaskPassword(cells []string) []string

MaskPassword masks strings that resemble passwords (containing "pass" or 8+ characters) with asterisks.

func StripColors

func StripColors(s string) string

StripColors removes ANSI color codes from a string.

Types

type Name added in v1.0.5

type Name struct {
	First string
	Last  string
}

func (Name) Format added in v1.0.5

func (n Name) Format() string

Note: Format() overrides String() if both exist.

func (Name) String added in v1.0.5

func (n Name) String() string

this will be ignored since Format() is present

Jump to

Keyboard shortcuts

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