# README
go-text
The package text and the sub-packages are Go libraries to operate text.
Requirements
Go 1.18 or later.
Supported Character Encodings
- UTF-8
- UTF-16
- Shift-JIS
Sub Packages
color : This package provides support for coloring text with ANSI escape sequences.
csv : This package provides support for reading and writing CSV format.
fixedlen : This package provides support for reading and writing Fixed-Length format.
json : This package provides support for encoding and decoding JSON format.
jsonl : This package provides support for reading JSON Lines format.
ltsv : This package provides support for reading and writing LTSV format.
table : This package provides support for writing text tables.
# Packages
Package color is a Go library to render ANSI escape color sequences.
Package csv is a Go library to read and write CSV format.
Package fixedlen is a Go library to read and write Fixed-Length format.
Package json is a Go library to read and write JSON format.
Package jsonl is a Go library to read and write JSON Lines format.
Package ltsv is a Go library to read and write LTSV format.
Package table is a Go library to write text tables.
# Functions
ByteSize calculates byte size of a string.
Decode a string from any encoding to UTF-8.
DetectEncoding Detects character encoding.
No description provided by the author
Encode a string from UTF-8 to another encoding.
GetTransformDecoder gets a reader to transform character encoding from any encoding to UTF-8.
GetTransformEncoder gets a reader to transform character encoding from UTF-8 to another encoding.
GetTransformWriter gets a writer to transform character encoding from UTF-8 to another encoding.
No description provided by the author
No description provided by the author
No description provided by the author
IsRightToLeftLetters returns true if a string is Right-to-Left horizontal writing characters.
No description provided by the author
No description provided by the author
No description provided by the author
RuneByteSize calculates byte size of a character.
RuneWidth calculates character width to be displayed.
Width calculates string width to be displayed.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author