Documentation
¶
Overview ¶
Package validator implements rules for validating fields.
Package validator implements rules for validating fields.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GeneratorMemory = map[string]bool{}
GeneratorMemory is a map used to track the state of generated validators.
Functions ¶
This section is empty.
Types ¶
type FieldPath ¶
type FieldPath string
FieldPath represents a field path with dot-separated components.
func NewFieldPath ¶
NewFieldPath creates a new FieldPath from the given components.
func (FieldPath) CleanedPath ¶
CleanedPath returns the field path with all dots removed for use in variable names and keys.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package registry provides a registry system for validators.
|
Package registry provides a registry system for validators. |
|
initializers
Code generated by generate-validators; DO NOT EDIT.
|
Code generated by generate-validators; DO NOT EDIT. |
|
Package rules implements validation rules for fields in structs.
|
Package rules implements validation rules for fields in structs. |
|
Package validatorhelper provides helper functions for the govalid validator.
|
Package validatorhelper provides helper functions for the govalid validator. |
Click to show internal directories.
Click to hide internal directories.