Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit

Permalink
Regenerate the doc with the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aerostitch committed Apr 14, 2018
1 parent df8c854 commit 108c5f6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion examples/fs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Package fs provides filesystem-related functions.
* [func (w *Walker) Step() bool](#Walker.Step)

#### <a name="pkg-examples">Examples</a>
* [Walker](#example_Walker)
* [Walker](#example-walker)

#### <a name="pkg-files">Package files</a>
[filesystem.go](https://github.com/kr/fs/tree/master/filesystem.go) [walk.go](https://github.com/kr/fs/tree/master/walk.go)
Expand Down Expand Up @@ -83,6 +83,18 @@ Walker does not follow symbolic links.



##### Example Walker:
``` go
walker := fs.Walk("/usr/lib")
for walker.Step() {
if err := walker.Err(); err != nil {
fmt.Fprintln(os.Stderr, err)
continue
}
fmt.Println(walker.Path())
}
```




Expand Down

0 comments on commit 108c5f6

Please sign in to comment.