Versions in this module Expand all Collapse all v0 v0.0.1 Jan 11, 2023 Changes in this version + func DetectAll(content []byte) ([]chardet.Result, error) + func DetectAndConvertToUtf8(content []byte) (convertedContent []byte, charset string, confidence int, converted bool, ...) + func DetectBest(content []byte) (r *chardet.Result, err error) + func IsValidBig5(content []byte) bool + func IsValidGB18030(content []byte) bool + func IsValidGBK(content []byte) bool + func IsValidUTF16(content []byte) (isUTF16 bool, BE bool, LE bool) + func IsValidUTF16BE(content []byte) bool + func IsValidUTF16LE(content []byte) bool + func IsValidUTF8(content []byte) bool + func ToUtf8WithDecoder(content []byte, d encoding.Decoder) ([]byte, error) + func ToUtf8WithEncoding(content []byte, e encoding.Encoding) ([]byte, error) + type Result struct + Charset string + Confidence int + Convertible bool + Encoding encoding.Encoding + Language string + func DetectEncoding(content []byte) (r *Result, err error)