slices

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 AnyElem

func AnyElem(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 EachElem

func EachElem(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 Empty

func Empty() *base.Matcher

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

func ToLen

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

Applies the given matcher to the length of the input element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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