Documentation ¶
Index ¶
- type Checker
- func (c *Checker) CheckFailed() bool
- func (c *Checker) StepCount() int
- func (c *Checker) WithConditionalLogicStep(cond func() bool, logic func() error, errorFunc func()) *Checker
- func (c *Checker) WithConditionalValueNotEmpty(cond func() bool, valueName string, value func() string, errorFunc func()) *Checker
- func (c *Checker) WithLogicStep(logic func() error, errorFunc func()) *Checker
- func (c *Checker) WithValueEqualsCheck(valueName string, value func() string, equal func() string, errorFunc func()) *Checker
- func (c *Checker) WithValueLengthCheck(valueName string, value func() string, minlength, maxlength int, ...) *Checker
- func (c *Checker) WithValueNotEmptyCheck(valueName string, value func() string, errorFunc func()) *Checker
- func (c *Checker) WithValueStep(logic func()) *Checker
- func (c *Checker) WithValuesNotEmptyCheck(values func() []string, errorFunc func()) *Checker
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 (*Checker) WithConditionalLogicStep ¶
func (*Checker) WithConditionalValueNotEmpty ¶
func (*Checker) WithLogicStep ¶
func (*Checker) WithValueEqualsCheck ¶
func (*Checker) WithValueLengthCheck ¶
func (*Checker) WithValueNotEmptyCheck ¶
func (*Checker) WithValueStep ¶
func (*Checker) WithValuesNotEmptyCheck ¶
Click to show internal directories.
Click to hide internal directories.