Documentation ¶ Index ¶ func EnsureUTF8(config []byte, useStrictUTF8 bool) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func EnsureUTF8 ¶ func EnsureUTF8(config []byte, useStrictUTF8 bool) ([]byte, error) EnsureUTF8 will convert from the most common encodings to UTF8. If useStrictUTF8 is enabled then if the file is not already utf8 then an error will be returned. Types ¶ This section is empty. Source Files ¶ View all Source files encoder.go Click to show internal directories. Click to hide internal directories.