Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Fields is the fields flag Fields = "$fields" // Errors is the errors flag Errors = "$errors" )
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct{}
Parser is the struct for the error parser
func (*Parser) GenerateValidationsMessage ¶
func (p *Parser) GenerateValidationsMessage( validations govalidatormappervalidations.Validations, level int, ) (*string, error)
GenerateValidationsMessage returns a formatted error message for Parser
func (*Parser) GetLevelPadding ¶
GetLevelPadding returns the padding for the level
func (*Parser) ParseValidations ¶
func (p *Parser) ParseValidations(validations govalidatormappervalidations.Validations) ( interface{}, error, )
ParseValidations parses the validations and returns the validations message
Click to show internal directories.
Click to hide internal directories.