Versions in this module Expand all Collapse all v0 v0.3.0 Dec 14, 2017 v0.2.0 Dec 13, 2017 Changes in this version + func MatchLanguage(preferred ...string) language.Tag v0.1.0 Sep 14, 2017 Changes in this version + var DefaultCatalog *catalog.Catalog = defaultCatalog + func Set(tag language.Tag, key string, msg ...catalog.Message) error + func SetString(tag language.Tag, key string, msg string) error + type Option func(o *options) + func Catalog(c *catalog.Catalog) Option + type Printer struct + func NewPrinter(t language.Tag, opts ...Option) *Printer + func (p *Printer) Fprint(w io.Writer, a ...interface{}) (n int, err error) + func (p *Printer) Fprintf(w io.Writer, key Reference, a ...interface{}) (n int, err error) + func (p *Printer) Fprintln(w io.Writer, a ...interface{}) (n int, err error) + func (p *Printer) Print(a ...interface{}) (n int, err error) + func (p *Printer) Printf(key Reference, a ...interface{}) (n int, err error) + func (p *Printer) Println(a ...interface{}) (n int, err error) + func (p *Printer) Sprint(a ...interface{}) string + func (p *Printer) Sprintf(key Reference, a ...interface{}) string + func (p *Printer) Sprintln(a ...interface{}) string + type Reference interface + func Key(id string, fallback string) Reference