I don't know, but I would use filepath.Walk directly. For example:
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err; // you can also return nil here if you want to skip files and directories that can not be accessed
}
if info.IsDir() || !strings.HasSuffix(".html") {
return nil // ignore directories and other files
}
err = parseFile(path)
return err
})