txtopener

package module
v0.0.0-...-07bd1fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

README

txtopener

easy utility that provides a reader that converts almost any encoding to UTF-8 without BOM

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpenAndClose

func MustOpenAndClose(name string) (io.Reader, func())

MustOpenAndClose calls os.Open and returns a reader that converts the content to UTF-8 without BOM and a function to close the file who panics if there is an error

func NewReader

func NewReader(r io.Reader) io.Reader

NewReader returns an io.Reader that converts the content of r to UTF-8 without BOM. It calls charset.DetermineEncoding() to find out what r's enconding is

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL