Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
Dictionary is a map of string to string that represent a key to its translation
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
Translator is a struct, containing a dictionary
func NewTranslator ¶
func NewTranslator(dictionary ...Dictionary) Translator
NewTranslator generates and returns Translator object
func (Translator) Translate ¶
func (t Translator) Translate(key string, params ...interface{}) string
Translate convert given key
Click to show internal directories.
Click to hide internal directories.