From fbb3c658021e775bbf186522aaec3df1af8d83c7 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 20 Jul 2025 15:57:49 +0200 Subject: [PATCH] doc: update example form configuration --- example/form.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/form.go b/example/form.go index 748181c..926ee3c 100644 --- a/example/form.go +++ b/example/form.go @@ -1,6 +1,7 @@ package example import ( + "net/http" "time" "github.com/spf13/cast" @@ -234,6 +235,6 @@ func CreateDataForm() *form.Form { "class": "row", }), ). - WithMethod("POST"). + WithMethod(http.MethodPost). WithAction("/") }