Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotDetected = chardet.NotDetectedError
Functions ¶
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func NewDetector ¶
func NewDetector(opts ...DetectorOption) *Detector
type DetectorOption ¶
type DetectorOption func(resultFilter) resultFilter
func WithCharset ¶
func WithCharset(charsets ...string) DetectorOption
func WithLanguage ¶
func WithLanguage(langs ...string) DetectorOption
func WithPrefer ¶
func WithPrefer(f func(a, b chardet.Result) bool) DetectorOption
Click to show internal directories.
Click to hide internal directories.