Sen descrición

Julien Laffaye 52d3001130 Specify that a server conn is not concurrent safe. %!s(int64=7) %!d(string=hai) anos
.travis.yml 55546487cf Use mock for all tests %!s(int64=7) %!d(string=hai) anos
LICENSE 3a7f65cd20 Update copyright years. %!s(int64=13) %!d(string=hai) anos
README.md 73b56eeee6 Rework README %!s(int64=7) %!d(string=hai) anos
client_test.go 04b1878733 Add DialWithOptions %!s(int64=7) %!d(string=hai) anos
conn_test.go 04b1878733 Add DialWithOptions %!s(int64=7) %!d(string=hai) anos
ftp.go 52d3001130 Specify that a server conn is not concurrent safe. %!s(int64=7) %!d(string=hai) anos
parse.go b218223d02 Use error values in tests %!s(int64=7) %!d(string=hai) anos
parse_test.go b218223d02 Use error values in tests %!s(int64=7) %!d(string=hai) anos
scanner.go 602886c6b8 Do not export the scanner type %!s(int64=9) %!d(string=hai) anos
scanner_test.go 602886c6b8 Do not export the scanner type %!s(int64=9) %!d(string=hai) anos
status.go 72f5c01749 StatusText returns a text for the FTP status code %!s(int64=7) %!d(string=hai) anos
status_test.go 8019e67744 Add tests for StatusText %!s(int64=7) %!d(string=hai) anos

README.md

goftp

Build Status Coverage Status Go ReportCard godoc.org

A FTP client package for Go

Install

go get -u github.com/jlaffaye/ftp

Example

c, err := ftp.DialWithOptions("ftp.example.org", DialWithTimeout(5*time.Second))
if err != nil {
    t.Fatal(err)
}

err = c.Login("anonymous", "anonymous")
if err != nil {
    t.Fatal(err)
}

// Do something with the FTP conn

if err := c.Close(); err != nil {
    t.Fatal(err)
}