walk

package
v0.0.0-...-97eb4e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(pathName string, fa FileAction) error

Walk: recursively walks through file paths and doing an action on each file that isnt a directory walk.Walk calls walk.step in a go routine

Types

type FileAction

type FileAction interface {
	Do(filePath string) error
}

FileAction is an interface for an action to be done on each file that isnt a directory FileAction has to implement its own thread safety

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL