mirror of
https://github.com/restic/restic.git
synced 2026-05-26 03:55:24 +00:00
Vendor dependencies with dep
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user