filter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAll added in v0.1.1

func AllowAll[T any](_ T) bool

Types

type Filter

type Filter[T any] func(T) bool

func And added in v0.1.1

func And[T any](fs ...Filter[T]) Filter[T]

func ByName added in v0.1.1

func ByName[T Named](rxs regex.Regexes) Filter[T]

func Not added in v0.1.1

func Not[T any](f Filter[T]) Filter[T]

func Or added in v0.1.1

func Or[T any](fs ...Filter[T]) Filter[T]

type Named added in v0.1.1

type Named interface {
	Name() string
}

Jump to

Keyboard shortcuts

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