Versions in this module Expand all Collapse all v0 v0.0.3 Feb 1, 2024 Changes in this version + var NotDetectedError = errors.New("Charset not detected.") + func DetectFileEncoding(filePath string) (string, error) + type Detector struct + func NewHtmlDetector() *Detector + func NewTextDetector() *Detector + func (d *Detector) DetectAll(b []byte) ([]Result, error) + func (d *Detector) DetectBest(b []byte) (r *Result, err error) + type Result struct + Charset string + Confidence int + Language string