templatemask

package
v1.29.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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

Types

type MaskEngine

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

MaskEngine is to mask a value thanks to a template

func NewMask

func NewMask(text string, funcs tmpl.FuncMap, seed int64, seedField string) (MaskEngine, error)

NewMask create a MaskEngine

func (MaskEngine) Mask

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

Mask masks a value with a template

Jump to

Keyboard shortcuts

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