-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix typos * Add changelog entry --------- Co-authored-by: John Judd <[email protected]>
- Loading branch information
1 parent
4c42b46
commit a6121a9
Showing
59 changed files
with
196 additions
and
195 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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ Or call directly: | |
import "github.com/c2fo/vfs/v6/backend/ftp" | ||
func DoSomething() { | ||
fs := ftp.NewFilesystem() | ||
fs := ftp.NewFileSystem() | ||
location, err := fs.NewLocation("[email protected]:21", "/some/path/") | ||
if err != nil { | ||
|
@@ -29,18 +29,18 @@ Or call directly: | |
... | ||
} | ||
ftp can be augmented with some implementation-specific methods. Backend returns vfs.Filesystem interface so it | ||
would have to be cast as ftp.Filesystem to use them. | ||
ftp can be augmented with some implementation-specific methods. Backend returns vfs.FileSystem interface so it | ||
would have to be cast as ftp.FileSystem to use them. | ||
These methods are chainable: | ||
(*FileSystem) WithClient(client interface{}) *FileSystem | ||
(*FileSystem) WithOptions(opts vfs.Options) *FileSystem | ||
func DoSomething() { | ||
// cast if fs was created using backend.Backend(). Not necessary if created directly from ftp.NewFilesystem(). | ||
// cast if fs was created using backend.Backend(). Not necessary if created directly from ftp.NewFileSystem(). | ||
fs := backend.Backend(ftp.Scheme) | ||
fs = fs.(*ftp.Filesystem) | ||
fs = fs.(*ftp.FileSystem) | ||
// to pass specific client implementing types.Client interface (in this case, _ftp github.com/jlaffaye/ftp) | ||
client, _ := _ftp.Dial("server.com:21") | ||
|
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
Oops, something went wrong.