MCPcopy
hub / github.com/go-yaml/yaml / is_bom

Function is_bom

yamlprivateh.go:103–105  ·  view source on GitHub ↗

Check if the beginning of the buffer is a BOM.

(b []byte, i int)

Source from the content-addressed store, hash-verified

101
102// Check if the beginning of the buffer is a BOM.
103func is_bom(b []byte, i int) bool {
104 return b[0] == 0xEF && b[1] == 0xBB && b[2] == 0xBF
105}
106
107// Check if the character at the specified position is space.
108func is_space(b []byte, i int) bool {

Calls

no outgoing calls

Tested by

no test coverage detected