/splitby

make bufio.SplitFuncs based on string/[]byte separators or regular expressions

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Go Reference

I find bufio.SplitFuncs difficult to write.

This package provides a common class of bufio.SplitFuncs, those that split on a separator or using a regular expression.

(To avoid pulling in heavy dependencies, it does not actually import package regexp. It depends only on bufio, bytes, and errors.)