|
3 years ago | |
---|---|---|
.. | ||
.travis.yml | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
bom.go | 3 years ago |
small tools for cleaning bom from byte array or reader
$ go get github.com/ssor/bom
bs := []byte{bom0, bom1, bom2, 0x11}
result := CleanBom(bs)
bs := []byte{bom0, bom1, bom2, 0x11}
result := NewReaderWithoutBom(bytes.NewReader(bs))