iohub / ahocorasick

A fast and memory efficient implementation of aho-corasick algorithm based on double-array trie (cedar), supports visualizing structure via graphviz.
GNU General Public License v2.0
115 stars 20 forks source link

failing test: cedar.Save is broken #5

Closed aaaton closed 5 years ago

aaaton commented 5 years ago

Since there are no exported fields in the Cedar struct, the Save() method doesn't work. Both gob and json uses introspection, which can only see exported fields from what I understand.

I added failing test-cases. I don't know which fields are necessary, and which are more like temporary state that can be inferred.

Thank you for this package.

iohub commented 5 years ago

Thanks