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 ¶
func NewConvertBytesFunc ¶
func NewConvertFunc ¶
func NewDecoderAndEncoder ¶
func NewTransformBytesFunc ¶
func NewTransformWriter ¶
func NewTransformWriter(charset string, dst io.WriteCloser) (io.WriteCloser, error)
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.