Check if the beginning of the buffer is a BOM.
(b []byte, i int)
| 101 | |
| 102 | // Check if the beginning of the buffer is a BOM. |
| 103 | func 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. |
| 108 | func is_space(b []byte, i int) bool { |
no outgoing calls
no test coverage detected