Gerasimos (Makis) Maropoulos 2021-01-27 00:57:51 +02:00
parent b3cca49b4e
commit fc1a9ced29
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7

@ -55,7 +55,7 @@ func main() {
// Returns InvalidValidationError for bad validation input,
// nil or ValidationErrors ( []FieldError )
err := vctx.ReadJSON(&user)
err := ctx.ReadJSON(&user)
if err != nil {
// This check is only needed when your code could produce
// an invalid value for validation such as interface with nil