pub(crate) fn skip_bom(input: &[u8]) -> &[u8] {
    if input.len() >= 3 && &input[0..3] == b"\xef\xbb\xbf" {
        &input[..3]
    } else {
        input
    }
}
/// Skip the utf-8 Byte Order Mark.
/// credits to csv-core
Skip the utf-8 Byte Order Mark.
credits to csv-core
Skip the utf - 8 Byte Order Mark . credits to csv - core
pub(crate) fn skip_bom(input: &[u8]) -> &[u8] {
    if input.len() >= 3 && &input[0..3] == b"\xef\xbb\xbf" {
        &input[..3]
    } else {
        input
    }
}
pub ( crate ) fn skip_bom ( input : & [ u8 ] ) -> & [ u8 ] { if input . len ( ) >= 3 && & input [ 0 .. 3 ] == b" \xef \xbb \xbf " { & input [ .. 3 ] } else { input } }
Skip the utf-8 Byte Order Mark.
Skip the utf - 8 Byte Order Mark .
input
&[u8]
input
&[u8]