Versions in this module Expand all Collapse all v0 v0.2.0 Jun 12, 2019 v0.1.0 Jun 11, 2019 Changes in this version + var ErrNotFound = errors.New("catalog: message not found") + type Builder struct + func NewBuilder(opts ...Option) *Builder + func (b *Builder) Context(tag language.Tag, r catmsg.Renderer) *Context + func (b *Builder) Languages() []language.Tag + func (c *Builder) Matcher() language.Matcher + func (c *Builder) Set(tag language.Tag, key string, msg ...Message) error + func (c *Builder) SetMacro(tag language.Tag, name string, msg ...Message) error + func (c *Builder) SetString(tag language.Tag, key string, msg string) error + type Catalog interface + Context func(tag language.Tag, r catmsg.Renderer) *Context + Languages func() []language.Tag + Matcher func() language.Matcher + func NewFromMap(dictionaries map[string]Dictionary, opts ...Option) (Catalog, error) + type Context struct + func (c *Context) Execute(key string) error + type Dictionary interface + Lookup func(key string) (data string, ok bool) + type Message = catmsg.Message + func String(name string) Message + func Var(name string, msg ...Message) Message + type Option func(*options) + func Fallback(tag language.Tag) Option