package
0.0.0-20241111182353-c1fbc2c9b65f
Repository: https://github.com/triangleside/gotools.git
Documentation: pkg.go.dev
# Functions
DereferenceAndNilCheck is used to get the base type and ensure it's not nil.
MustRegisterValidator sets the callback for a validator.
NewCallbackResult instantiates a CallbackResult.
NewViolation instantiates a *Violation.
NewViolations instantiates a *Violations struct.
Struct validates all struct fields using their validation tags, returning an error if any fail.
Var validates a single variable with the given instructions, returning an error if it fails.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NameAndInstructionsSep is the separator between the validation name and the instructions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Tag is the name of the struct field tag.
ValidatorsSep is the separator between validation names.
# Structs
CallbackParameters are the parameters sent to the validation callback.
CallbackResult instructs the validation on how to proceed after the validator is complete.
Violation represents a failure for a specific validator.
Violations represents a list of violations.