Registry / utility / dimchansky-utfbom

dimchansky-utfbom

JSON →
library1.1.1gogounverified

Package utfbom implements detection and removal of the Unicode Byte Order Mark (BOM).

go get github.com/dimchansky/utfbom
INSTALL
IMPORT
SIG · DIMCHANSKY-UTFBOM
D
dimchansky-utfbom
utilitygov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

utfbom
✓ github.com/dimchansky/utfbom

Skips the BOM from a byte stream.

package main import ( "fmt" "strings" "github.com/dimchansky/utfbom" ) func main() { input := "\xef\xbb\xbfhello" reader := utfbom.SkipOnly(strings.NewReader(input)) buf := make([]byte, 10) n, _ := reader.Read(buf) fmt.Printf("Without BOM: %s\n", buf[:n]) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
dimchansky-utfbom — go get dimchansky-utfbom · libregistry