Skip to content

Commit

Permalink
Merge pull request #58 from Villaquiranm/review-readme
Browse files Browse the repository at this point in the history
Update example of usage option Skip on README.md
  • Loading branch information
otiai10 authored Apr 28, 2021
2 parents 46369e3 + 347b3c2 commit f3bbcbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type Options struct {
```go
// For example...
opt := Options{
Skip: func(src string) {
return strings.HasSuffix(src, ".git")
Skip: func(src string) (bool, error) {
return strings.HasSuffix(src, ".git"), nil
},
}
err := Copy("your/directory", "your/directory.copy", opt)
Expand Down

0 comments on commit f3bbcbb

Please sign in to comment.