collections

package
v0.0.0-...-a7d1dd0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyElement

func AnyElement(matcher *base.Matcher) *base.Matcher

Returns a matcher that matches on any array or slice input value if the given matcher matches at least one element of that array or slice.

The returned matcher does not match any non-array-or-slice value.

func AnyMapElement

func AnyMapElement(matcher *base.Matcher) *base.Matcher

func Empty

func Empty() *base.Matcher

Matches any input element that is an empty array, slice, or map.

func EveryElement

func EveryElement(matcher *base.Matcher) *base.Matcher

Returns a matcher that matches on any array or slice input value if the given matcher matches every element of that array or slice.

The returned matcher does not match any non-array-or-slice value.

func EveryMapElement

func EveryMapElement(matcher *base.Matcher) *base.Matcher

func ToLen

func ToLen(matcher *base.Matcher) *base.Matcher

Applies the given matcher to the length of the input element, if the input element is an array, slice, or map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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