cats

package
v0.0.0-...-1259547 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defined

func Defined(value interface{}) assay.Arrow

Defined checks if the value is defined, use a pointer to the value.

func FMap

func FMap(f func() error) assay.Arrow

FMap applies clojure to category. The function lifts any computation to the category and make it composable with the "program".

func FlatMap

func FlatMap(f func() assay.Arrow) assay.Arrow

FlatMap applies closure to matched HTTP request. It returns an arrow, which continue evaluation.

Types

type TSeq

type TSeq struct{ assay.Ord }

TSeq is tagged type, represents Sequence of elements

func Seq

func Seq(seq assay.Ord) TSeq

Seq matches presence of element in the sequence.

func (TSeq) Has

func (seq TSeq) Has(key string, expect ...interface{}) assay.Arrow

Has lookups element using key and matches expected value

type TValue

type TValue struct {
	// contains filtered or unexported fields
}

TValue is tagged type, represent matchers

func Value

func Value(val interface{}) TValue

Value checks if the value equals to defined one. Supply the pointer to actual value

func (TValue) Bytes

func (val TValue) Bytes(require []byte) assay.Arrow

Bytes matches a literal value of bytes

func (TValue) Is

func (val TValue) Is(require interface{}) assay.Arrow

Is matches a value

func (TValue) String

func (val TValue) String(require string) assay.Arrow

String matches a literal value

Jump to

Keyboard shortcuts

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