summaryrefslogtreecommitdiff
path: root/examples/basic.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic.go')
-rw-r--r--examples/basic.go4
1 files changed, 2 insertions, 2 deletions
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})
}