package
Version:
v1.1.0-beta
Opens a new window with list of versions in this module.
Published: Sep 20, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package validator 提供了参数校验器接口。
func InitFunc(r func(i interface{}) error)
InitFunc 初始化参数校验器。
func Validate(i interface{}) error
Validate 参数校验。
type Validator interface {
Validate(i interface{}) error
}
Validator 参数校验器接口。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.