package
0.21.0
Repository: https://go.googlesource.com/text
Documentation: pkg.go.dev

# Packages

Package catalog defines collections of translated format strings.
Package pipeline provides tools for creating translation pipelines.

# Functions

Catalog defines the catalog to be used.
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.
MatchLanguage reports the matched tag obtained from language.MatchStrings for the Matcher of the DefaultCatalog.
NewPrinter returns a Printer that formats messages tailored to language t.
Set calls Set on the initial default Catalog.
SetString calls SetString on the initial default Catalog.

# Variables

DefaultCatalog is used by SetString.

# Structs

A Printer implements language-specific formatted I/O analogous to the fmt package.

# Interfaces

A Reference is a string or a message reference.

# Type aliases

An Option defines an option of a Printer.