regex

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

Factory create a mask from a yaml config

func Func added in v1.15.0

func Func(seed int64, seedField string) interface{}

Types

type MaskEngine

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

MaskEngine is a value that mask thanks to a regular expression

func NewMask

func NewMask(exp string, seed int64, seeder model.Seeder) (MaskEngine, error)

NewMask return a RegexMask from a regexp

func (MaskEngine) Mask

func (rm MaskEngine) Mask(e model.Entry, context ...model.Dictionary) (model.Entry, error)

Mask returns a string thanks to a regular expression

Jump to

Keyboard shortcuts

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