contains

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 2 Imported by: 0

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

type InStringsStructs

type InStringsStructs struct {
	ContainsInSet InSet
	MaxLen        int
}

func (InStringsStructs) Contains

func (is InStringsStructs) Contains(value string) bool

Jump to

Keyboard shortcuts

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