desense

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultDesenser = "default"
)

Variables

This section is empty.

Functions

func DensenceFiled

func DensenceFiled(fieldValue reflect.Value, filedTag reflect.StructTag) error

func DensenceList

func DensenceList(elems reflect.Value) error

DensenceFiled

func MaskStruct

func MaskStruct(target any) error

musk:defualt,3,2

func ParseStructTag

func ParseStructTag(v string) (name string, args []string)

func Registry

func Registry(name string, d Desenser)

Types

type Desenser

type Desenser interface {
	DeSense(value string, args ...string) string
}

func Default

func Default() Desenser

func Get

func Get(name string) Desenser

Jump to

Keyboard shortcuts

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