text: golang.org/x/text Index | Files | Directories

package text

import "golang.org/x/text"

text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.

There is a 30 minute video, recorded on 2017-11-30, on the "State of golang.org/x/text" at https://www.youtube.com/watch?v=uYrDrMEGu58


Package Files



casesPackage cases provides general and language-specific case mappers.
cmd/gotextgotext is a tool for managing text in Go source code.
collatePackage collate contains types for comparing and sorting Unicode strings according to a given collation order.
currencyPackage currency contains currency-related functionality.
encodingPackage encoding defines an interface for character encodings, such as Shift JIS and Windows 1252, that can convert to and from UTF-8.
encoding/charmapPackage charmap provides simple character encodings such as IBM Code Page 437 and Windows 1252.
encoding/htmlindexPackage htmlindex maps character set encoding names to Encodings as recommended by the W3C for use in HTML 5.
encoding/ianaindexPackage ianaindex maps names to Encodings as specified by the IANA registry.
encoding/internalPackage internal contains code that is shared among encoding implementations.
encoding/internal/identifierPackage identifier defines the contract between implementations of Encoding and Index by defining identifiers that uniquely identify standardized coded character sets (CCS) and character encoding schemes (CES), which we will together refer to as encodings, for which Encoding implementations provide converters to and from UTF-8.
encoding/japanesePackage japanese provides Japanese encodings such as EUC-JP and Shift JIS.
encoding/koreanPackage korean provides Korean encodings such as EUC-KR.
encoding/simplifiedchinesePackage simplifiedchinese provides Simplified Chinese encodings such as GBK.
encoding/traditionalchinesePackage traditionalchinese provides Traditional Chinese encodings such as Big5.
encoding/unicodePackage unicode provides Unicode encodings such as UTF-16.
encoding/unicode/utf32Package utf32 provides the UTF-32 Unicode encoding.
feature/pluralPackage plural provides utilities for handling linguistic plurals in text.
internalPackage internal contains non-exported functionality that are used by packages in the text repository.
internal/catmsgPackage catmsg contains support types for package x/text/message/catalog.
internal/cldrtreePackage cldrtree builds and generates a CLDR index file, including all inheritance.
internal/colltabPackage colltab contains functionality related to collation tables.
internal/export/idnaPackage idna implements IDNA2008 using the compatibility processing defined by UTS (Unicode Technical Standard) #46, which defines a standard to deal with the transition from IDNA2003.
internal/export/unicodePackage unicode generates the Unicode tables in core.
internal/formatPackage format contains types for defining language-specific formatting of values.
internal/genPackage gen contains common code for the various code generation tools in the text repository.
internal/gen/bitfieldPackage bitfield converts annotated structs into integer values.
internal/language/compactPackage compact defines a compact representation of language tags.
internal/numberPackage number contains tools and data for formatting numbers.
internal/stringsetPackage stringset provides a way to represent a collection of strings compactly.
internal/tagPackage tag contains functionality handling tags and related data.
internal/testtextPackage testtext contains test data that is of common use to the text repository.
internal/triegenPackage triegen implements a code generator for a trie for associating unsigned integer values with UTF-8 encoded runes.
internal/ucdPackage ucd provides a parser for Unicode Character Database files, the format of which is defined in https://www.unicode.org/reports/tr44/.
internal/utf8internalPackage utf8internal contains low-level utf8-related constants, tables, etc.
languagePackage language implements BCP 47 language tags and related functionality.
language/displayPackage display provides display names for languages, scripts and regions in a requested language.
messagePackage message implements formatted I/O for localized strings with functions analogous to the fmt's print functions.
message/catalogPackage catalog defines collections of translated format strings.
message/pipelinePackage pipeline provides tools for creating translation pipelines.
numberPackage number formats numbers according to the customs of different locales.
runesPackage runes provide transforms for UTF-8 encoded text.
searchPackage search provides language-specific search and string matching.
securesecure is a repository of text security related packages.
secure/bidirulePackage bidirule implements the Bidi Rule defined by RFC 5893.
secure/precisPackage precis contains types and functions for the preparation, enforcement, and comparison of internationalized strings ("PRECIS") as defined in RFC 8264.
transformPackage transform provides reader and writer wrappers that transform the bytes passing through as well as various transformations.
unicodeunicode holds packages with implementations of Unicode standards that are mostly used as building blocks for other packages in golang.org/x/text, layout engines, or are otherwise more low-level in nature.
unicode/bidiPackage bidi contains functionality for bidirectional text support.
unicode/cldrPackage cldr provides a parser for LDML and related XML formats.
unicode/normPackage norm contains types and functions for normalizing Unicode strings.
unicode/rangetablePackage rangetable provides utilities for creating and inspecting unicode.RangeTables.
unicode/runenamesPackage runenames provides rune names from the Unicode Character Database.
widthPackage width provides functionality for handling different widths in text.

Updated 2020-10-25. Refresh now. Tools for package owners.