summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/ssor/bom/README.md
blob: 2dcc289ffed11014dbf14845de48efeeabfe122d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# bom
small tools for cleaning bom from byte array or reader


## Installation

```sh
$ go get github.com/ssor/bom
```

## How to Use


```
	bs := []byte{bom0, bom1, bom2, 0x11}
	result := CleanBom(bs)
```

```
	bs := []byte{bom0, bom1, bom2, 0x11}
	result := NewReaderWithoutBom(bytes.NewReader(bs))

```