Skip to content

Commit

Permalink
expand readme
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Apr 29, 2024
1 parent 478f946 commit da25ccb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ for f := range fileListQueue {
The above by default will recursively add files to the fileListQueue respecting both .ignore and .gitignore files if found, and
only adding files with the go extension into the queue.

You can also run the walker in parallel with the results intermixed if required,

```go
fileListQueue := make(chan *gocodewalker.File, 100)

fileWalker := gocodewalker.NewParallelFileWalker([]string{".", "someotherdir"}, fileListQueue)
go fileWalker.Start()

for f := range fileListQueue {
fmt.Println(f.Location)
}
```

All code is dual-licenced as either MIT or Unlicence.

### Error Handler
Expand Down

0 comments on commit da25ccb

Please sign in to comment.