From 644cf2b8f8b3bfc8e2f229c263614e7b03efc4fa Mon Sep 17 00:00:00 2001 From: Tomaz Date: Thu, 21 Sep 2023 09:22:29 +0200 Subject: [PATCH] Update basic example Missing closing quotation mark, validation is not working without it --- _examples/simple/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/simple/main.go b/_examples/simple/main.go index 35a56c17e..6581412d5 100644 --- a/_examples/simple/main.go +++ b/_examples/simple/main.go @@ -12,7 +12,7 @@ type User struct { LastName string `validate:"required"` Age uint8 `validate:"gte=0,lte=130"` Email string `validate:"required,email"` - Gender string `validate:"oneof=male female prefer_not_to` + Gender string `validate:"oneof=male female prefer_not_to"` FavouriteColor string `validate:"iscolor"` // alias for 'hexcolor|rgb|rgba|hsl|hsla' Addresses []*Address `validate:"required,dive,required"` // a person can have a home and cottage... }