segment

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

Factory create a mask from a configuration

Types

type MaskEngine

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

func NewMask

func NewMask(segment model.SegmentType, caches map[string]model.Cache, fns tmpl.FuncMap, seed int64, seeder model.Seeder, seedField string) (MaskEngine, error)

NewMask return a MaskEngine from a value

func (MaskEngine) Mask

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

Jump to

Keyboard shortcuts

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