Sign in
fuchsia
/
third_party
/
kr
/
fs
/
refs/tags/v0.1.0
/
.
/
example_test.go
blob: 77e0db9feebb4941c99937bd84020da33e3ca67a [
file
] [
log
] [
blame
]
package fs_test
import (
"fmt"
"os"
"github.com/kr/fs"
)
func ExampleWalker() {
walker := fs.Walk("/usr/lib")
for walker.Step() {
if err := walker.Err(); err != nil {
fmt.Fprintln(os.Stderr, err)
continue
}
fmt.Println(walker.Path())
}
}