chacha

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DontCheckChildrens

type DontCheckChildrens struct{}

type Tree

type Tree struct {
	Validator Validator
	Data      interface{}
	Result    error
	Valid     bool
	Childrens []Tree
}

Дерево проверок

func (*Tree) CheckChildrens

func (t *Tree) CheckChildrens() bool

Проверять детей

func (*Tree) ShowErrors

func (t *Tree) ShowErrors()

func (*Tree) Validate

func (t *Tree) Validate(params ...interface{})

Валидировать рекурсивно дерево

type Validator

type Validator func(params ...interface{}) (interface{}, error)

Тип проверяльщик

Jump to

Keyboard shortcuts

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