type Printer … type options … type Option … // Catalog defines the catalog to be used. func Catalog(c catalog.Catalog) Option { … } // NewPrinter returns a Printer that formats messages tailored to language t. func NewPrinter(t language.Tag, opts ...Option) *Printer { … } // Sprint is like fmt.Sprint, but using language-specific formatting. func (p *Printer) Sprint(a ...interface{ … } // Fprint is like fmt.Fprint, but using language-specific formatting. func (p *Printer) Fprint(w io.Writer, a ...interface{ … } // Print is like fmt.Print, but using language-specific formatting. func (p *Printer) Print(a ...interface{ … } // Sprintln is like fmt.Sprintln, but using language-specific formatting. func (p *Printer) Sprintln(a ...interface{ … } // Fprintln is like fmt.Fprintln, but using language-specific formatting. func (p *Printer) Fprintln(w io.Writer, a ...interface{ … } // Println is like fmt.Println, but using language-specific formatting. func (p *Printer) Println(a ...interface{ … } // Sprintf is like fmt.Sprintf, but using language-specific formatting. func (p *Printer) Sprintf(key Reference, a ...interface{ … } // Fprintf is like fmt.Fprintf, but using language-specific formatting. func (p *Printer) Fprintf(w io.Writer, key Reference, a ...interface{ … } // Printf is like fmt.Printf, but using language-specific formatting. func (p *Printer) Printf(key Reference, a ...interface{ … } func lookupAndFormat(p *printer, r Reference, a []interface{ … } type rawPrinter … func (p rawPrinter) Render(msg string) { … } func (p rawPrinter) Arg(i int) interface{ … } // Arg implements catmsg.Renderer. func (p *printer) Arg(i int) interface{ … } // Render implements catmsg.Renderer. func (p *printer) Render(msg string) { … } type Reference … // Key creates a message Reference for a message where the given id is used for // message lookup and the fallback is returned when no matches are found. func Key(id string, fallback string) Reference { … } type key …