filter

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[I Filterable](input []I, filterList *[]string, valueIdentifier uint, opts Options) ([]I, error)

Filters on Value with a list of filters @return, true if value should be included, false otherwise

Types

type Filterable

type Filterable interface {
	GetFilterableValue(val uint) string
}

type Options

type Options struct {
	EmptyFilterNoMatch    bool
	MatchIncludedInResult bool
	RegexpMatching        bool
}

Jump to

Keyboard shortcuts

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