Documentation ¶
Overview ¶
Package dirwalk contains code to walk a directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkShallow ¶
WalkShallow reads the entries in the named directory and calls fn for each. It does not recurse into subdirectories.
If fn returns an error, iteration stops and WalkShallow returns that value.
On Linux, WalkShallow does not allocate, so long as certain methods on the WalkFunc's DirEntry are not called which necessarily allocate.
Types ¶
Click to show internal directories.
Click to hide internal directories.