checker

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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