findincsv

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 13 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{}

func JaccardSimilarity

func JaccardSimilarity(s1, s2 string) float64

JaccardSimilarity calculates the Jaccard similarity between two strings.

Types

type CSVKey

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

type JaccardCSV

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

type MaskEngine

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

func NewMask

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

func (*MaskEngine) ExactMatch

func (me *MaskEngine) ExactMatch(filename string, context []model.Dictionary) (bool, []model.Entry, error)

func (*MaskEngine) Mask

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

Mask choose one or many line's value in csv which matched with given value from json entry.

Jump to

Keyboard shortcuts

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