package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 1, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package validator runs struct-tag validation followed by custom validation.
Option enables validate struct tags. The core calls custom Validate separately.
Validate runs go-playground/validator struct tags, then calls Validate on v
when it implements Validator. It returns the first error.
type Validator interface {
Validate() error
}
Validator supplies application-specific validation after tag validation succeeds.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.