Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tmickleydoyle authored Mar 19, 2020
1 parent 01c2066 commit 3637e36
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

func main() {
err := moonwalk.Slide("/directory/to/walk", func(path string, info os.FileInfo, err error) error {
err := moonwalk.Slide("/Users/tmickleydoyle/Desktop", func(path string, info os.FileInfo, err error) error {

if err != nil {
fmt.Printf("prevent panic by handling failure accessing a path %q: %v\n", path, err)
Expand All @@ -38,4 +38,19 @@ func main() {

```

Example Output

```text
/Users/tmickleydoyle/Desktop/data.csv
/Users/tmickleydoyle/Desktop/data.json
/Users/tmickleydoyle/Desktop/filename.txt
/Users/tmickleydoyle/Desktop/download.png
/Users/tmickleydoyle/Desktop/network.json
/Users/tmickleydoyle/cohorts.json
/Users/tmickleydoyle/house_query.sql
/Users/tmickleydoyle/website.html
/Users/tmickleydoyle/blog.txt
/Users/setup.txt
```

[Go Playground Example](https://play.golang.org/p/iwX6I3cMc3k)

0 comments on commit 3637e36

Please sign in to comment.