app_msg_container_impl

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AltCompile

func AltCompile(m app_msg.Message) string

func AltText

func AltText(key string) string

func NewContainer

func NewContainer() app_msg_container.Container

func NewMultilingual

func NewMultilingual(las []lang.Lang, containers map[lang.Iso639One]app_msg_container.Container) app_msg_container.Container

func NewSingle

func NewSingle(la lang.Lang) (c app_msg_container.Container, err error)

Load single language container

func NewSingleWithMessagesForTest

func NewSingleWithMessagesForTest(msgs map[string]string) app_msg_container.Container

Types

type Alt

type Alt struct {
}

func (Alt) Compile

func (z Alt) Compile(m app_msg.Message) string

func (Alt) Exists

func (z Alt) Exists(msg app_msg.Message) bool

func (Alt) ExistsKey

func (z Alt) ExistsKey(key string) bool

func (Alt) Lang

func (z Alt) Lang() lang.Lang

func (Alt) Text

func (z Alt) Text(key string) string

Jump to

Keyboard shortcuts

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