MCPcopy Create free account
hub / github.com/go-git/go-git / Next

Method Next

plumbing/object/tree.go:380–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378}
379
380func (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.
389type TreeWalker struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected