Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
godirwalk
✓ github.com/karrick/godirwalk
Walks a directory tree and counts entries.
package main
import (
"fmt"
"os"
"github.com/karrick/godirwalk"
)
func main() {
count := 0
godirwalk.Walk(".", &godirwalk.Options{
Callback: func(osPathname string, de *godirwalk.Dirent) error {
count++
return nil
},
Unsorted: true,
})
fmt.Printf("Found %d entries\n", count)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.17.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.