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
116 stars 20 forks source link

feat: returning error message from cedar.Save() from cedar.SaveToFile() #4

Closed aaaton closed 5 years ago

aaaton commented 5 years ago

Ran cedar.SaveToFile(fileName, "gob") and got a nil error response, but output file was empty. I saw that the (potential) error message from cedar.Save() was ignored. Returning the output from that instead.