Browse Source

Merge remote-tracking branch 'upstream/master' into feature/fix_ReadCodeLine

SunRunAway 12 years ago
parent
commit
2a6b9c2640
3 changed files with 11 additions and 2 deletions
  1. 7 0
      README.md
  2. 3 0
      client_test.go
  3. 1 2
      parse_test.go

+ 7 - 0
README.md

@@ -0,0 +1,7 @@
+# goftp #
+
+A FTP client package for Go
+
+## Documentation ##
+
+http://godoc.org/github.com/jlaffaye/goftp

+ 3 - 0
client_test.go

@@ -111,6 +111,7 @@ func TestConn(t *testing.T) {
 	}
 	}
 }
 }
 
 
+// ftp.mozilla.org uses multiline 220 response
 func TestConn2(t *testing.T) {
 func TestConn2(t *testing.T) {
 	c, err := Connect("ftp.mozilla.org:21")
 	c, err := Connect("ftp.mozilla.org:21")
 	if err != nil {
 	if err != nil {
@@ -126,4 +127,6 @@ func TestConn2(t *testing.T) {
 	if err != nil {
 	if err != nil {
 		t.Error(err)
 		t.Error(err)
 	}
 	}
+
+	c.Quit()
 }
 }

+ 1 - 2
parse_test.go

@@ -1,11 +1,10 @@
 package ftp
 package ftp
 
 
 import (
 import (
-	"time"
 	"testing"
 	"testing"
+	"time"
 )
 )
 
 
-
 var thisYear, _, _ = time.Now().Date()
 var thisYear, _, _ = time.Now().Date()
 
 
 type line struct {
 type line struct {