checker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

func (*Checker) CheckFailed

func (c *Checker) CheckFailed() bool

func (*Checker) StepCount

func (c *Checker) StepCount() int

func (*Checker) WithConditionalLogicStep

func (c *Checker) WithConditionalLogicStep(cond func() bool, logic func() error, errorFunc func()) *Checker

func (*Checker) WithConditionalValueNotEmpty

func (c *Checker) WithConditionalValueNotEmpty(cond func() bool, valueName string, value func() string, errorFunc func()) *Checker

func (*Checker) WithLogicStep

func (c *Checker) WithLogicStep(logic func() error, errorFunc func()) *Checker

func (*Checker) WithValueEqualsCheck

func (c *Checker) WithValueEqualsCheck(valueName string, value func() string, equal func() string, errorFunc func()) *Checker

func (*Checker) WithValueLengthCheck

func (c *Checker) WithValueLengthCheck(valueName string, value func() string, minlength, maxlength int, errorFunc func()) *Checker

func (*Checker) WithValueNotEmptyCheck

func (c *Checker) WithValueNotEmptyCheck(valueName string, value func() string, errorFunc func()) *Checker

func (*Checker) WithValueStep

func (c *Checker) WithValueStep(logic func()) *Checker

func (*Checker) WithValuesNotEmptyCheck

func (c *Checker) WithValuesNotEmptyCheck(values func() []string, errorFunc func()) *Checker

Jump to

Keyboard shortcuts

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