Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Ok bool Authorized bool Error error Messages []string Failures map[string][]string }
Result is returned after each validation
func Unauthorized ¶
func Unauthorized() *Result
Unauthorized returns an unauthorized validation result
func (*Result) AddFieldFailure ¶
AddFieldFailure add failure message to specific field
Click to show internal directories.
Click to hide internal directories.