From a5d3439e2dc4bcc170dbf5c3571394ba05d7694e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=8A=E1=B4=8F=E1=B4=87=20=E1=B4=84=CA=9C=E1=B4=87?= =?UTF-8?q?=C9=B4?= Date: Sun, 17 May 2026 20:39:09 -0400 Subject: [PATCH] chore: replace reflect.Ptr with reflect.Pointer (#8262) --- internal/form/form.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/form/form.go b/internal/form/form.go index 5911dc9e9..6b9a56a54 100644 --- a/internal/form/form.go +++ b/internal/form/form.go @@ -41,7 +41,7 @@ func Assign(form any, data map[string]any) { typ := reflect.TypeOf(form) val := reflect.ValueOf(form) - if typ.Kind() == reflect.Ptr { + if typ.Kind() == reflect.Pointer { typ = typ.Elem() val = val.Elem() } @@ -95,7 +95,7 @@ func validate(errs binding.Errors, data map[string]any, f Form, l macaron.Locale Assign(f, data) typ := reflect.TypeOf(f) - if typ.Kind() == reflect.Ptr { + if typ.Kind() == reflect.Pointer { typ = typ.Elem() }