Replace DialWithOptions with Dial

No need for a dedicated function as Dial can take no options.
This commit is contained in:
Julien Laffaye
2019-04-23 14:03:05 +02:00
parent 9b5a3addd7
commit e6de3d35bf
3 changed files with 6 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ go get -u github.com/jlaffaye/ftp
## Example ##
```go
c, err := ftp.DialWithOptions("ftp.example.org:21", ftp.DialWithTimeout(5*time.Second))
c, err := ftp.Dial("ftp.example.org:21", ftp.DialWithTimeout(5*time.Second))
if err != nil {
log.Fatal(err)
}