The highest tagged major version is
v4.
package
Version:
v0.0.0-...-a4d1c61
Opens a new window with list of versions in this module.
Published: Jan 6, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DefaultStructValidator(target interface{}) error
DefaultStructValidator validates that the passed structure is valid.
func Validate(target interface{}) error
Validate validates an object if it implements the Validator interface.
Objects that do not implement the Validator interface are not validated.
type Validator interface {
Validate() error
}
Validator allows defining validation behavior for an object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.