protoc-gen-go-micro/vendor/github.com/kr/fs/example_test.go
Manfred Touron c8c607ae0d
Add vendor
2016-11-06 18:32:32 +01:00

20 lines
259 B
Go

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())
}
}