https://github.com/ssor/bom
small tools for cleaning bom from byte array or reader
https://github.com/ssor/bom
bom utf8
Last synced: 5 months ago
JSON representation
small tools for cleaning bom from byte array or reader
- Host: GitHub
- URL: https://github.com/ssor/bom
- Owner: ssor
- License: mit
- Created: 2017-03-02T01:02:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-19T09:01:58.000Z (over 5 years ago)
- Last Synced: 2024-06-18T21:30:51.541Z (about 2 years ago)
- Topics: bom, utf8
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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))
```