checkers

package
v0.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCondChecker = errors.New("cond_checker: cond check not pass")
)

Functions

func CondChecker

func CondChecker(valueFunc ValueFunc, condFunc CondFunc, expect any) *condChecker

func FuncChecker

func FuncChecker(CheckFunc ...CheckFunc) *funcChecker

func NoChecker

func NoChecker() *noChecker

Types

type CheckFunc

type CheckFunc func() (ok bool, err error)

type CondFunc

type CondFunc func(expect, data any) bool

type ValueFunc

type ValueFunc func() (data any)

Jump to

Keyboard shortcuts

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