![]() |
vor 6 Jahren | |
---|---|---|
.. | ||
BUILD.bazel | vor 6 Jahren | |
LICENSE | vor 6 Jahren | |
README.md | vor 6 Jahren | |
bom.go | vor 6 Jahren |
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))