From 5807e676a3de14759fc32a8790e4afc22929d642 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Thu, 5 Mar 2015 11:57:38 +0100 Subject: [PATCH] Add comments to make golint happy. --- ftp.go | 1 + status.go | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ftp.go b/ftp.go index c7ba2f4..d6b4d43 100644 --- a/ftp.go +++ b/ftp.go @@ -16,6 +16,7 @@ import ( // EntryType describes the different types of an Entry. type EntryType int +// The differents types of an Entry const ( EntryTypeFile EntryType = iota EntryTypeFolder diff --git a/status.go b/status.go index 50ee376..e90ca62 100644 --- a/status.go +++ b/status.go @@ -1,14 +1,13 @@ package ftp +// FTP status codes, defined in RFC 959 const ( - // Positive Preliminary reply StatusInitiating = 100 StatusRestartMarker = 110 StatusReadyMinute = 120 StatusAlreadyOpen = 125 StatusAboutToSend = 150 - // Positive Completion reply StatusCommandOK = 200 StatusCommandNotImplemented = 202 StatusSystem = 211 @@ -29,12 +28,10 @@ const ( StatusRequestedFileActionOK = 250 StatusPathCreated = 257 - // Positive Intermediate reply StatusUserOK = 331 StatusLoginNeedAccount = 332 StatusRequestFilePending = 350 - // Transient Negative Completion reply StatusNotAvailable = 421 StatusCanNotOpenDataConnection = 425 StatusTransfertAborted = 426 @@ -44,7 +41,6 @@ const ( StatusActionAborted = 451 Status452 = 452 - // Permanent Negative Completion reply StatusBadCommand = 500 StatusBadArguments = 501 StatusNotImplemented = 502