hashcsv

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 11 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

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

Types

type MaskEngine

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

MaskEngine is a list of masking value and a rand init to mask

func NewMask

func NewMask(conf model.ChoiceInCSVType, seed int64, seeder model.Seeder) (MaskEngine, error)

NewMask create a MaskRandomChoiceInCSV with a seed

func (MaskEngine) Mask

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

Mask choose a mask value randomly

Jump to

Keyboard shortcuts

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