validator

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package validator 提供了参数校验器接口。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(r Validator)

Init 初始化参数校验器。

func InitFunc

func InitFunc(r func(i interface{}) error)

InitFunc 初始化参数校验器。

func Validate

func Validate(i interface{}) error

Validate 参数校验。

Types

type Validator

type Validator interface {
	Validate(i interface{}) error
}

Validator 参数校验器接口。

Jump to

Keyboard shortcuts

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