Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrEncodingIsNotCertain = "encoding is not certain: %v" ErrDataIsBuffered = "data is buffered" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is a reader capable of guessing the encoding of a stream. The reader is single-threaded, i.e. it does not support concurrency.
func (*Reader) Close ¶ added in v0.9.2
Close closes the reader. It is a standard method for the 'io.Closer' interface.
func (*Reader) GetEncodings ¶
func (br *Reader) GetEncodings() (encodings []bom.Encoding)
GetEncodings returns the list of encodings detected in the data stream.
Click to show internal directories.
Click to hide internal directories.