Help us shape the future of Go! Take the 2026 Go Developer Survey

filter

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: GPL-3.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)

Filter filters the input 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