ui

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTemplateValue

func AddTemplateValue(ctx context.Context, key string, val any)

func Compress

func Compress() func(next http.Handler) http.Handler

Compress is a middleware that compresses responds body. The only difference of `github.com/go-chi/chi/v5/middleware#Compress` is the default value. In order to be able to use this middleware, ensure to set url format with `github.com/go-chi/chi/v5/middleware#URLFormat`

func InitTemplateContext

func InitTemplateContext(next http.Handler) http.Handler

func ServeStaticOrTemplate

func ServeStaticOrTemplate(staticRoot http.FileSystem, tmplRoot fs.FS) http.Handler

func Template

func Template(tmplRoot fs.FS, filename string) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL