tangs b030ce89ca openbilibili | 5 年之前 | |
---|---|---|
.. | ||
BUILD.bazel | 5 年之前 | |
LICENSE | 5 年之前 | |
README.md | 5 年之前 | |
bom.go | 5 年之前 |
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))