Games now have a page and everything works on multiple size screens, but I need to do a serious refactoring to normalize all data to be Go style.
This commit is contained in:
parent
31b224c6e8
commit
931c493928
9 changed files with 123 additions and 26 deletions
|
|
@ -56,7 +56,9 @@ func ReflectOnPost(typeOf reflect.Type, c *fiber.Ctx) (reflect.Value, error) {
|
|||
var validate *validator.Validate
|
||||
validate = validator.New(validator.WithRequiredStructEnabled())
|
||||
|
||||
if err := validate.Struct(result); err != nil {
|
||||
err := validate.Struct(result)
|
||||
|
||||
if err != nil {
|
||||
validationErrors := err.(validator.ValidationErrors)
|
||||
log.Println(validationErrors)
|
||||
return result_val, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue