Versions in this module Expand all Collapse all v0 v0.0.3 Mar 23, 2024 v0.0.2 Mar 22, 2024 Changes in this version + type Generator interface + Generate func(cache cache.Interface, target string) (*virt.File, error) + type Match struct + Mode Mode + Path string + func (m *Match) Generate(cache cache.Interface, target string) (*virt.File, error) + type Mode uint8 + const ModeDir + const ModeGen + const ModeGenDir + func (m Mode) FileMode() fs.FileMode + func (m Mode) IsDir() bool + func (m Mode) IsGen() bool + func (m Mode) IsGenDir() bool + func (m Mode) IsGenFile() bool + func (m Mode) String() string + type Node struct + Generators []Generator + Mode Mode + Name string + func (n *Node) Children() []*Node + func (n *Node) Format() string + func (n *Node) Print(tree treeprint.Tree) string + type Tree struct + func New() *Tree + func (t *Tree) Delete(fpath string) + func (t *Tree) Find(fpath string) (*Match, bool) + func (t *Tree) FindPrefix(fpath string) (*Match, bool) + func (t *Tree) GenerateDir(fpath string, generator Generator) error + func (t *Tree) GenerateFile(fpath string, generator Generator) error + func (t *Tree) Print() string