trie
trie copied to clipboard
Dump to a Writer, not a file.
For maximum flexibility, Go libraries should Write to io.Writer's (an abstraction) instead of a filename (a concretion). Doing this allows easy Dump'ing to files, buffers, streams, etc.