import "golang.org/x/text"
text is a repository of text-related packages, such as character encodings, text transformations, and locale-specific text handling.
Path | Synopsis |
---|---|
cases | Package cases provides general and language-specific case mappers. |
collate | Package collate contains types for comparing and sorting Unicode strings according to a given collation order. |
collate/build | |
collate/colltab | |
collate/tools/colcmp | |
currency | Package currency contains currency-related functionality. |
encoding | Package encoding defines an interface for character encodings, such as Shift JIS and Windows 1252, that can convert to and from UTF-8. |
encoding/charmap | Package charmap provides simple character encodings such as IBM Code Page 437 and Windows 1252. |
encoding/htmlindex | Package htmlindex maps character set encoding names to Encodings as recommended by the W3C for use in HTML 5. |
encoding/ianaindex | Package ianaindex maps names to Encodings as specified by the IANA registry. |
encoding/internal | Package internal contains code that is shared among encoding implementations. |
encoding/internal/identifier | Package 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/japanese | Package japanese provides Japanese encodings such as EUC-JP and Shift JIS. |
encoding/korean | Package korean provides Korean encodings such as EUC-KR. |
encoding/simplifiedchinese | Package simplifiedchinese provides Simplified Chinese encodings such as GBK. |
encoding/traditionalchinese | Package traditionalchinese provides Traditional Chinese encodings such as Big5. |
encoding/unicode | Package unicode provides Unicode encodings such as UTF-16. |
internal | Package internal contains non-exported functionality that are used by packages in the text repository. |
internal/colltab | Package colltab contains functionality related to collation tables. |
internal/format | Package format contains types for defining language-specific formatting of values. |
internal/format/plural | Package plural defines the grammatical plural feature. |
internal/gen | Package gen contains common code for the various code generation tools in the text repository. |
internal/number | Package number contains tools and data for formatting numbers. |
internal/stringset | Package stringset provides a way to represent a collection of strings compactly. |
internal/tag | Package tag contains functionality handling tags and related data. |
internal/testtext | Package testtext contains test data that is of common use to the text repository. |
internal/triegen | Package triegen implements a code generator for a trie for associating unsigned integer values with UTF-8 encoded runes. |
internal/ucd | Package ucd provides a parser for Unicode Character Database files, the format of which is defined in http://www.unicode.org/reports/tr44/. |
internal/utf8internal | Package utf8internal contains low-level utf8-related constants, tables, etc. |
language | Package language implements BCP 47 language tags and related functionality. |
language/display | Package display provides display names for languages, scripts and regions in a requested language. |
message | Package message implements formatted I/O for localized strings with functions analogous to the fmt's print functions. |
runes | Package runes provide transforms for UTF-8 encoded text. |
search | Package search provides language-specific search and string matching. |
secure | secure is a repository of text security related packages. |
secure/precis | Package precis contains types and functions for the preparation, enforcement, and comparison of internationalized strings ("PRECIS") as defined in RFC 7564. |
transform | Package transform provides reader and writer wrappers that transform the bytes passing through as well as various transformations. |
unicode | unicode 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/bidi | Package bidi contains functionality for bidirectional text support. |
unicode/cldr | Package cldr provides a parser for LDML and related XML formats. |
unicode/norm | Package norm contains types and functions for normalizing Unicode strings. |
unicode/rangetable | Package rangetable provides utilities for creating and inspecting unicode.RangeTables. |
width | Package width provides functionality for handling different widths in text. |
Updated about 16 hours ago. Refresh now. Tools for package owners.