validator

package
v2.10.18 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 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 Validate

type Validate struct {
	StdOk    int
	StdError int
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(stdOk, stdError int) *Validate

func (*Validate) Condition

func (v *Validate) Condition(con bool, msg string, args ...int) *Validate

func (*Validate) IsPass

func (v *Validate) IsPass() bool

func (*Validate) PrintError

func (v *Validate) PrintError(fmt string, args ...any)

func (*Validate) Verify

func (v *Validate) Verify() (bool, string, int)

type ValidateItem

type ValidateItem struct {
	Con        bool
	Msg        string
	Code       int
	PrintError bool
	PrintFmt   string
	PrintArgs  []any
}

Jump to

Keyboard shortcuts

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