hooks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PadDefaultContentString = "padDefaultContent"
View Source
const PadLoadString = "padLoad"

Variables

View Source
var AvailableLangs = map[string]LanguageInfo{}

Functions

func ExpressPreSession

func ExpressPreSession(app *fiber.App, uiAssets embed.FS)

func IsValid

func IsValid(langcode string) bool

Types

type AttributeContainer

type AttributeContainer struct {
	// contains filtered or unexported fields
}

type Hook

type Hook struct {
	// contains filtered or unexported fields
}

func NewHook

func NewHook() Hook

func (*Hook) DequeueHook

func (h *Hook) DequeueHook(key, id string)

func (*Hook) EnqueueHook

func (h *Hook) EnqueueHook(key string, ctx func(hookName string, ctx any)) string

func (*Hook) ExecuteHooks

func (h *Hook) ExecuteHooks(key string, ctx any)

type LanguageContainer

type LanguageContainer struct {
	// contains filtered or unexported fields
}

type LanguageInfo

type LanguageInfo struct {
	LanguageCode string
	Direction    string
	Attribute    string
	DisplayName  string
}

type Locales

type Locales = map[string]interface{}

Jump to

Keyboard shortcuts

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