sense

package
v1.9.17 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDesenser = NewStdDesenser()
)

Functions

func DeSense

func DeSense(value string) string

Types

type Desenser

type Desenser interface {
	DeSense(value string) string
}

type StdDesenser

type StdDesenser struct {
	// 保留前缀字符的长度
	MaintainPrefixCharLength int
}

脱敏器

func NewStdDesenser

func NewStdDesenser() *StdDesenser

func (*StdDesenser) DeSense

func (d *StdDesenser) DeSense(value string) string

Jump to

Keyboard shortcuts

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