Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2022 Changes in this version + const ANY + func StringToBytes(s string) []byte + func SubStringLast(str string, substr string) string + type Context struct + R *http.Request + W http.ResponseWriter + func (c *Context) DefaultQuery(key, defaultValue string) string + func (c *Context) File(fileName string) + func (c *Context) FileAttachment(filepath, filename string) + func (c *Context) FileFromFS(filepath string, fs http.FileSystem) + func (c *Context) GetAllQuery(key string) ([]string, bool) + func (c *Context) GetQuery(key string) string + func (c *Context) GetQueryMap(key string) (map[string]string, bool) + func (c *Context) HTML(status int, html string) error + func (c *Context) HTMLTemplate(name string, data any, filename ...string) error + func (c *Context) HTMLTemplateGlob(name string, data any, pattern string) error + func (c *Context) JSON(status int, data any) error + func (c *Context) QueryArray(key string) (values []string) + func (c *Context) QueryMap(key string) (dicts map[string]string) + func (c *Context) Redirect(status int, url string) error + func (c *Context) Render(statusCode int, r render.Render) error + func (c *Context) String(status int, format string, values ...any) error + func (c *Context) Template(name string, data any) error + func (c *Context) XML(status int, data any) error + type Engine struct + HTMLRender render.HTMLRender + func New() *Engine + func (e *Engine) LoadHTMLTemplate(pattern string) + func (e *Engine) Run() + func (e *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (e *Engine) SetFuncMap(funcMap template.FuncMap) + func (e *Engine) SetHTMLTemplate(t *template.Template) + func (r Engine) Group(name string) *routerGroup + type HandleFunc func(ctx *Context) + type MiddlewareFunc func(handleFunc HandleFunc) HandleFunc