textfile

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package textfile allows reading files that contain text. It automatically detects and converts several encodings and removes Byte Order Marks (BOM).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) ([]byte, error)

Decode removes a byte order mark and converts the bytes to UTF-8.

func Read

func Read(filename string) ([]byte, error)

Read returns the contents of the file, converted to UTF-8, stripped of any BOM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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