Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTranslations ¶
func LoadTranslations(thing map[string]interface{})
LoadTranslations takes a map[string]interface and flattens it to map[string]string Because translations have been loaded - we internally override log the formatter Nested entries are accessible using dot notation. example: `{"foo": {"bar": "baz"}}` flattened: `foo.bar: baz`
Types ¶
type RawFormatter ¶
type RawFormatter struct{}
type TranslationFormatter ¶
type TranslationFormatter struct {
*prefixed.TextFormatter
}
Click to show internal directories.
Click to hide internal directories.