summaryrefslogtreecommitdiff
path: root/examples/basic.go
blob: 467460fcae752b49bebb985fd3c79e74f7224611 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package examples

import (
	"log/slog"
	"net/http"
)

// Big bungus function here!
//
//hh:route GET /admin/users, query: query, nextURL: hh.Cookie(r, "logout_next_url")
func adminUsersForm(query struct {
	search, year string
	offset       int
}, w http.ResponseWriter) {
	_, _ = w.Write([]byte("ahahaha"))
	slog.Info("get admin users form", "search", query.search, "offset", query.offset)
}