Registry / utility / karrick-godirwalk

karrick-godirwalk

JSON →
library1.17.0gogounverified

Package godirwalk provides functions to read and traverse directory trees.

go get github.com/karrick/godirwalk
INSTALL
IMPORT
SIG · KARRICK-GODIRWALK
K
karrick-godirwalk
utilitygov1.17.0
harness data pending
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.

Agent activity
8 hits · last 30 days
node
8
Resources
karrick-godirwalk — go get karrick-godirwalk · libregistry