increment

package
v1.28.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

Create a mask from a configuration

Types

type MaskEngine

type MaskEngine struct {
	Value     *int
	Increment int
}

MaskEngine is a struct to create incremental int

func NewMask

func NewMask(start, incr int) MaskEngine

NewMask create an IncrementalMask

func (MaskEngine) Mask

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

Mask masks a value with an incremental int

Jump to

Keyboard shortcuts

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