Documentation
¶
Overview ¶
Command validation shows Anetos's validate package: tag rules, labels and messages, a custom rule, a Validate method for checks that need other data, and the 422 response a web.H handler returns.
go run ./examples/validation
It validates a sample input, prints the messages, then sends one request through a router and prints the JSON response.
Click to show internal directories.
Click to hide internal directories.