Versions in this module Expand all Collapse all v1 v1.0.2 Mar 19, 2023 v1.0.1 Mar 19, 2023 Changes in this version + type Dir struct + Children map[string]*Dir + Files map[string]Entry + Fp Fpath + func (d *Dir) Traverse(f func(*Dir)) + type Entry interface + Abs func() string + Dir func() string + Ext func() string + Rel func() string + type FileTree struct + Root *Dir + func Build(root string) (*FileTree, error) + func (ft *FileTree) Find(path string) *Dir + func (ft *FileTree) FindFile(path string) Entry + func (ft *FileTree) Traverse(f func(*Dir)) + type Fpath struct + func NewFpath(root string) (*Fpath, error) + func (f *Fpath) Abs() string + func (f *Fpath) Dir() string + func (f *Fpath) Rel() string + type Stepper interface + Walk func(e Entry, r io.Reader) error + Wants func(ext string) bool + type Walker struct + func BuildWalker(root string, steppers ...Stepper) (*Walker, error) + func NewWalker(ft *FileTree) *Walker + func (w *Walker) AddStepper(s Stepper) + func (w *Walker) Walk() error