i18n

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LangTmpl

type LangTmpl struct {
	Bundle *i18n.Bundle
	*i18n.Localizer
	*template.Template
}

func (*LangTmpl) GetI18nFuncMap

func (i18nTmpl *LangTmpl) GetI18nFuncMap(templateData map[string]interface{}) template.FuncMap

FuncMap: i18n, and other useful functions

func (*LangTmpl) MustCompile

func (i18nTmpl *LangTmpl) MustCompile(
	lang string,
	expr string,
	templateData map[string]interface{},
)

func (*LangTmpl) MustRender

func (i18nTmpl *LangTmpl) MustRender(wr io.Writer, ctx context)

func (*LangTmpl) Render

func (i18nTmpl *LangTmpl) Render(wr io.Writer, ctx context) error

type MessageID

type MessageID = string

Jump to

Keyboard shortcuts

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