If there is a problem walking to the Node, and ErrFunc is provided, Traverse will call ErrFunc with the error encountered. ErrFunc can decide how to handle that error, and return an error back to Traversal with how to proceed:

* nil - skip the Node and its children, but continue processing
* all other errors halt processing immediately.

If ErrFunc is nil, Traversal will stop, as if:

opts.ErrFunc = func(err error) { return err }

ErrFunc is referenced in 1 repository