forked from mirror/pkger
14 lines
208 B
Go
14 lines
208 B
Go
|
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)
|
||
|
}
|