bom

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package bom is used to clean up UTF-8 Byte Order Marks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(b []byte) []byte

Clean returns b with the 3 byte BOM stripped off the front if it is present. If the BOM is not present, then b is returned.

func NewReader

func NewReader(r io.Reader) io.Reader

NewReader returns an io.Reader that will skip over initial UTF-8 byte order marks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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