These changes clean up the exported API a bit by introducing a Trie struct to contain the root node, and hold the Add and Search methods. It also renames some funcs, and adds rudimentary error support for Open().
It's not necessary, but I hope it will make the library easier to work with.
These changes clean up the exported API a bit by introducing a Trie struct to contain the root node, and hold the Add and Search methods. It also renames some funcs, and adds rudimentary error support for Open().
It's not necessary, but I hope it will make the library easier to work with.