Skip to content

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

Merged
mkeeler merged 3 commits into
masterfrom
path-iter
Nov 21, 2023
Merged

Add Path Iterator to return results like WalkPath would visit#53
mkeeler merged 3 commits into
masterfrom
path-iter

Conversation

@mkeeler

@mkeeler mkeeler commented Nov 20, 2023

Copy link
Copy Markdown
Member

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
Comment thread path_iter.go Outdated
Comment thread path_iter.go Outdated
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
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