Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Dec 23, 2021
1 parent 7480484 commit 9aae5f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
# Example Usage

```go
err := Copy("your/directory", "your/directory.copy")
package main

import (
"fmt"
cp "github.com/otiai10/copy"
)

func main() {
err := cp.Copy("your/src", "your/dest")
fmt.Println(err) // nil
}
```

# Advanced Usage
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ExampleOptions() {
OnSymlink: func(src string) SymlinkAction {
return Skip
},
AddPermission: 0200,
PermissionControl: AddPermission(0200),
},
)
fmt.Println("Error:", err)
Expand Down

0 comments on commit 9aae5f7

Please sign in to comment.