diff options
Diffstat (limited to 'vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go')
-rw-r--r-- | vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go index 5cc7df53..7219c8e9 100644 --- a/vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go +++ b/vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go @@ -18,6 +18,11 @@ import ( // symlink named in the call may be traversed. var TraverseLink = errors.New("fastwalk: traverse symlink, assuming target is a directory") +// SkipFiles is a used as a return value from WalkFuncs to indicate that the +// callback should not be called for any other files in the current directory. +// Child directories will still be traversed. +var SkipFiles = errors.New("fastwalk: skip remaining files in directory") + // Walk is a faster implementation of filepath.Walk. // // filepath.Walk's design necessarily calls os.Lstat on each file, |