-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Upgrading from v1 to v2 | ||
|
||
The change from v1 to v2 was fairly minor: the return type of the `Open` method | ||
on the `OS` interface was changed from `*os.File` to `File`, a new interface | ||
exported by doublestar. The new `File` interface only defines the functionality | ||
doublestar actually needs (`io.Closer` and `Readdir`), making it easier to use | ||
doublestar with [go-billy](https://github.com/src-d/go-billy), | ||
[afero](https://github.com/spf13/afero), or something similar. If you were | ||
using this functionality, updating should be as easy as updating `Open's` | ||
return type, since `os.File` already implements `doublestar.File`. | ||
|
||
If you weren't using this functionality, updating should be as easy as changing | ||
your dependencies to point to v2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/bmatcuk/doublestar | ||
module github.com/bmatcuk/doublestar/v2 | ||
|
||
go 1.12 |