• Felix Lange's avatar
    trie: add start key to NodeIterator constructors · 4047ccad
    Felix Lange authored
    The 'step' method is split into two parts, 'peek' and 'push'. peek
    returns the next state but doesn't make it current.
    
    The end of iteration was previously tracked by setting 'trie' to nil.
    End of iteration is now tracked using the 'iteratorEnd' error, which is
    slightly cleaner and requires less code.
    4047ccad
sync_test.go 11.2 KB