contains

package
v0.0.0-...-b8b9e6a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncChecker

type FuncChecker func(value interface{}) bool

FuncChecker checks presence of value

type InSet

type InSet interface {
	Contains(value interface{}) bool
}

InSet checks presence of value

func NewFunc

func NewFunc(f FuncChecker) InSet

NewFunc instantiates InSet, functions is used for checking

func NewSet

func NewSet(s sets.Set) InSet

NewSet instantiates InSet based on sets.Set

type InStrings

type InStrings interface {
	Contains(value string) bool
}

InStrings checks existing value in set of strings

func NewInStrings

func NewInStrings(contains InSet, maxLen int) InStrings

NewInStrings instantiates InStrings based on InSet

func NewInStringsFromArray

func NewInStringsFromArray(elements []string) InStrings

NewInStringsFromArray instantiates InStrings based on []string

Jump to

Keyboard shortcuts

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