Documentation ¶
Index ¶
- func BuildRequireSlice(value interface{}, parent string) ([]string, error)
- func CheckSlice(allow []string, field reflect.Value, fn func(value interface{}) error) error
- func Integrity(value interface{}) error
- func IsAllowed(allow []string, value string) bool
- func PartialIntegrity(value interface{}) error
- func UpdateIntegrity(ref divan.Model, specs *divanSpecs.Update) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRequireSlice ¶
func CheckSlice ¶
Perform deep recursive check of slices.
func IsAllowed ¶
The restrict tag allows a field to only accept a limited set of values. It uses the string representation of a value to compare it against a list of string represented values.
func PartialIntegrity ¶
func PartialIntegrity(value interface{}) error
Run Integrity() test but ignores default and required tags.
func UpdateIntegrity ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.