v1.2.0
New SplitFunc
for words, sentences and graphemes, for use with bufio.Scanner
. Provided for convenience if you are using bufio.Scanner and want to drop in a replacement SplitFunc.
The ‘native’ (words|sentences|graphemes).NewScanner
is ~10% faster, prefer that if you are starting from scratch.