Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Create = create{ name: web.NewFormArg[string]("name"), }.Mount()
View Source
var Delete = delete_{ path: "/api/delete/%s", id: web.NewPathArg[int]("id"), }.Mount()
View Source
var HTMLEdit = html_edit{ id: web.NewPathArg[int]("id"), limit: QueryArgs.Limit, orderby: QueryArgs.OrderBy, page: QueryArgs.Page, }.Mount()
View Source
var HTMLList *html_list
View Source
var Index = Router.GET("/")
View Source
var List = list{ orderby: QueryArgs.OrderBy, mytest: web.NewHeaderArgOpt[string]("X-Mytest"), atest: web.NewCookieArgOpt[string]("atest"), }.Mount()
View Source
var Patch = patch{ id_: web.NewPathArg[int]("id"), }.Mount()
View Source
var QueryArgs = struct { Limit web.QueryArg[int] OrderBy web.QueryArg[string] Page web.QueryArg[int] }{ web.NewQueryArgOpt[int]("limit"), web.NewQueryArgOpt[string]("orderby"), web.NewQueryArgOpt[int]("page"), }
View Source
var Router = web.New("Category", StartContext).SetVerbose()
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.