()
| 378 | } |
| 379 | |
| 380 | func (iter *treeEntryIter) Next() (TreeEntry, error) { |
| 381 | if iter.pos >= len(iter.t.Entries) { |
| 382 | return TreeEntry{}, io.EOF |
| 383 | } |
| 384 | iter.pos++ |
| 385 | return iter.t.Entries[iter.pos-1], nil |
| 386 | } |
| 387 | |
| 388 | // TreeWalker provides a means of walking through all of the entries in a Tree. |
| 389 | type TreeWalker struct { |
nothing calls this directly
no outgoing calls
no test coverage detected