pkger/walk.go

14 lines
208 B
Go
Raw Normal View History

2019-07-31 00:21:26 +03:00
package pkger
import "os"
type WalkFunc func(Path, os.FileInfo, error) error
func Walk(p string, wf WalkFunc) error {
pt, err := Parse(p)
if err != nil {
return err
}
return rootIndex.Walk(pt, wf)
}