Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Path Iterator to return results like WalkPath would visit #53

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Nov 20, 2023

Description

I want to avoid the callbacks of WalkPath and be able to iterate over a snapshot of the tree so I made a PathIterator to do just that. It iterates through the tree identically to what WalkPath would except now the iteration is split across multiple invocations of Next.

TODOS

  • Add some PathIterator unit tests as a duplicate of the WalkPath unit tests.

@mkeeler mkeeler marked this pull request as ready for review November 21, 2023 15:40
path_iter.go Outdated Show resolved Hide resolved
path_iter.go Outdated Show resolved Hide resolved
mkeeler and others added 2 commits November 21, 2023 10:48
Co-authored-by: Chris S. Kim <kisunji92@gmail.com>
Co-authored-by: Chris S. Kim <kisunji92@gmail.com>
@mkeeler mkeeler merged commit 9561837 into master Nov 21, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants