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:
Zed A. Shaw 2025-09-18 14:57:52 -04:00
parent 31b224c6e8
commit 931c493928
9 changed files with 123 additions and 26 deletions

View file

@ -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