Documentation ¶ Index ¶ Variables func NewDecoder(r io.Reader, enc Encoding) io.Reader func NewEncoder(w io.Writer, enc Encoding, withBOM bool) io.Writer type Encoding func DetectBOM(data []byte) (Encoding, int) func (e Encoding) String() string Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidEncoding = errors.New("invalid encoding") Functions ¶ func NewDecoder ¶ func NewDecoder(r io.Reader, enc Encoding) io.Reader func NewEncoder ¶ func NewEncoder(w io.Writer, enc Encoding, withBOM bool) io.Writer Types ¶ type Encoding ¶ type Encoding int const ( EncodingAuto Encoding = iota EncodingUTF8 EncodingUTF16LE EncodingUTF16BE EncodingISO88591 EncodingWindows1252 ) func DetectBOM ¶ func DetectBOM(data []byte) (Encoding, int) func (Encoding) String ¶ func (e Encoding) String() string Source Files ¶ View all Source files detect.gotables.gotranscode.go Click to show internal directories. Click to hide internal directories.