Help us shape the future of Go! Take the 2026 Go Developer Survey

hooks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var AvailableLangs = map[string]LanguageInfo{}
View Source
var HookInstance = NewHook()

Functions

func ExpressPreSession

func ExpressPreSession(app *fiber.App)

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