From 60693cc590a149ffc2d6302d692d74482c1cfa69 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 8 Jul 2013 08:44:16 +0200 Subject: [PATCH 1/3] Add a comment to state why TestConn2 is interesting. --- client_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client_test.go b/client_test.go index 0291bdc..3ebb8cf 100644 --- a/client_test.go +++ b/client_test.go @@ -104,6 +104,7 @@ func TestConn(t *testing.T) { } } +// ftp.mozilla.org uses multiline 220 response func TestConn2(t *testing.T) { c, err := Connect("ftp.mozilla.org:21") if err != nil { @@ -119,4 +120,6 @@ func TestConn2(t *testing.T) { if err != nil { t.Error(err) } + + c.Quit() } From d4849c8195ea6facd03c389c625edb06d7a79203 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 8 Jul 2013 20:06:16 +0200 Subject: [PATCH 2/3] gofmt parse_test.go --- parse_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parse_test.go b/parse_test.go index c853e59..c76561b 100644 --- a/parse_test.go +++ b/parse_test.go @@ -1,11 +1,10 @@ package ftp import ( - "time" "testing" + "time" ) - var thisYear, _, _ = time.Now().Date() type line struct { From 01215b6c09be495db0e6d7fbd3030cfc4e74b4c8 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 8 Jul 2013 20:34:49 +0200 Subject: [PATCH 3/3] Create README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a090f1a --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# goftp # + +A FTP client package for Go + +## Documentation ## + +http://godoc.org/github.com/jlaffaye/goftp