Overview of files

But it should be a matter of

if strings.HasPrefix(line, "\ufeff") {
  line = line[3:] // it must be utf-8, so three bytes for that thing
}

I’m sure there’s a BOMStrippingReader type somewhere out there as that’s fairly trivial, too. I guess we should praise the encoding gods that Notepad doesn’t default to UTF-16 or something.

Edit: Indeed: https://github.com/spkg/bom/blob/master/bom.go#L28