locale

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear clears loaded strings and reloads the default locale.

func Get

func Get(key string) (parts []interface{})

Get returns a list of parts for the given key. It will be either a string (just text to be printed) or an int (substitution index).

func GetRaw

func GetRaw(key string) string

GetRaw returns the unparsed value with the given name.

func LoadLocale

func LoadLocale(name string)

LoadLocale loads the named locale if it exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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