ui

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticHandler = initStaticHandler()

Functions

func GetLanguages

func GetLanguages() []string

func GetLocalizer

func GetLocalizer(r *http.Request) *i18n.Localizer

func GetMaybeT

func GetMaybeT(r *http.Request) func(string) string

func GetT

func GetT(r *http.Request) func(string) string

func RunTemplate

func RunTemplate(w http.ResponseWriter, r *http.Request, templateName string, data TemplateData)

Types

type CrumbtrailEntry

type CrumbtrailEntry struct {
	Text string
	URL  string
}

type TemplateData

type TemplateData map[string]any

type TemplateFunc

type TemplateFunc func(data any) (string, error)

Jump to

Keyboard shortcuts

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