summaryrefslogtreecommitdiff
path: root/examples/basic.go
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2024-11-17 16:49:01 +0100
committerMathias Magnusson <mathias@magnusson.space>2024-11-17 16:49:01 +0100
commit19fa57e67bcc4af13a252c17c0e18adab162d2d1 (patch)
tree404de62432062ddeb19c675c96856f966e3e2a79 /examples/basic.go
parent72440d0e3b2a8224b65491202798f5c0b18a2dde (diff)
downloadhh-19fa57e67bcc4af13a252c17c0e18adab162d2d1.tar.gz
more wip
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})
}