package
0.0.0-20200910132837-6616cf9cc811
Repository: https://github.com/rekki/go-query-analyze.git
Documentation: pkg.go.dev
# README
tokenize

Simlpe tokenize chain
Example:
package main
import t "github.com/rekki/go-query-analyze/tokenize"
func main() {
tokenizer := []t.Tokenizer{
t.NewWhitespace(),
t.NewLeftEdge(1),
t.NewUnique(),
}
tokens := t.Tokenize("hello world", tokenizer...)
fmt.Printf("%v", tokens) // [h he hel hell hello w wo wor worl world]
}