Documentation ¶
Index ¶
- func Convert(fromEnc string, toEnc string, b []byte) ([]byte, error)
- func DetectText(content []byte) (string, error)
- func Encoding(charset string) encoding.Encoding
- func NewConvertBytesFunc(fromEnc string, toEnc string) (func([]byte) []byte, error)
- func NewConvertFunc(fromEnc string, toEnc string) (func(string) string, error)
- func NewDecoderAndEncoder(fromEnc string, toEnc string) (mahonia.Decoder, mahonia.Encoder, error)
- func NewTransformBytesFunc(charset string) (func([]byte) ([]byte, error), error)
- func NewTransformFunc(charset string) (func(string) (string, error), error)
- func NewTransformReader(charset string, src io.Reader) (io.Reader, error)
- func NewTransformWriter(charset string, dst io.WriteCloser) (io.WriteCloser, error)
- func Register(charset string, encoding encoding.Encoding, alias ...string)
- func RuneWith(str string) int
- func Supported() []string
- func Transform(charset string, content string) (string, error)
- func TransformBytes(charset string, content []byte) ([]byte, error)
- func Truncate(str string, width int) string
- func Validate(enc string) bool
- func With(str string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectText ¶ added in v5.2.0
func NewConvertBytesFunc ¶ added in v5.2.0
func NewConvertFunc ¶ added in v5.2.0
func NewDecoderAndEncoder ¶ added in v5.2.0
func NewTransformBytesFunc ¶ added in v5.2.0
func NewTransformFunc ¶ added in v5.2.0
func NewTransformReader ¶ added in v5.2.0
func NewTransformWriter ¶ added in v5.2.0
func NewTransformWriter(charset string, dst io.WriteCloser) (io.WriteCloser, error)
func TransformBytes ¶ added in v5.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.