Documentation ¶
Index ¶
- func CacheDir() string
- func CopyFile(src, dst string) (int64, error)
- func DirExists(path string) bool
- func FileExists(filename string) bool
- func HomeDir() string
- func SetCacheDir(dir string)
- func WalkDir(fsys fs.FS, root string, required WalkDirRequiredFunc, fn WalkDirFunc) error
- type WalkDirFunc
- type WalkDirRequiredFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.52.0
func WalkDir ¶
func WalkDir(fsys fs.FS, root string, required WalkDirRequiredFunc, fn WalkDirFunc) error
Types ¶
type WalkDirRequiredFunc ¶
func RequiredExt ¶ added in v0.45.0
func RequiredExt(exts ...string) WalkDirRequiredFunc
func RequiredFile ¶ added in v0.45.0
func RequiredFile(fileNames ...string) WalkDirRequiredFunc
Click to show internal directories.
Click to hide internal directories.