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

hooks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 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{}

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) EnqueueGetLineHtmlForExportHook added in v0.0.4

func (h *Hook) EnqueueGetLineHtmlForExportHook(ctx func(ctx any))

func (*Hook) EnqueueGetPluginTranslationHooks added in v0.0.4

func (h *Hook) EnqueueGetPluginTranslationHooks(cb func(ctx *events.LocaleLoadContext))

func (*Hook) EnqueueHook

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

func (*Hook) ExecuteGetLineHtmlForExportHooks added in v0.0.4

func (h *Hook) ExecuteGetLineHtmlForExportHooks(ctx any)

func (*Hook) ExecuteGetPluginTranslationHooks added in v0.0.4

func (h *Hook) ExecuteGetPluginTranslationHooks(ctx *events.LocaleLoadContext)

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{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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