From 19fa57e67bcc4af13a252c17c0e18adab162d2d1 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 17 Nov 2024 16:49:01 +0100 Subject: more wip --- examples/basic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/basic.go') diff --git a/examples/basic.go b/examples/basic.go index 2515c52..b26f8a9 100644 --- a/examples/basic.go +++ b/examples/basic.go @@ -12,7 +12,7 @@ import ( func adminUsersForm(w http.ResponseWriter, r struct { r *http.Request search, year string `hh:"form"` - offset int `hh:"form,optional"` + offset int `hh:"optional,form"` nextURL string `hh:"cookie,logout_next_url"` }) { _, _ = w.Write([]byte("ahahaha")) @@ -34,7 +34,7 @@ func hh_adminUsersForm[S any](s S, w http.ResponseWriter, r *http.Request) { adminUsersForm(w, struct { r *http.Request search, year string `hh:"form"` - offset int `hh:"form,optional"` + offset int `hh:"optional,form"` nextURL string `hh:"cookie,logout_next_url"` }{r: r, search: search, year: year, offset: offset}) } -- cgit v1.2.3