Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WalkFunc ¶
type WalkFunc func(path string, info *provider.ResourceInfo, err error) error
WalkFunc is the type of function called by Walk to visit each file or directory
Each time the Walk function meet a file/folder path is set to the full path of this. The err argument reports an error related to the path, and the function can decide the action to do with this.
The error result returned by the function controls how Walk continues. If the function returns the special value SkipDir, Walk skips the current directory. Otherwise, if the function returns a non-nil error, Walk stops entirely and returns that error.
Click to show internal directories.
Click to hide internal directories.