Add comments to make golint happy.
This commit is contained in:
parent
816e28448f
commit
5807e676a3
1
ftp.go
1
ftp.go
@ -16,6 +16,7 @@ import (
|
|||||||
// EntryType describes the different types of an Entry.
|
// EntryType describes the different types of an Entry.
|
||||||
type EntryType int
|
type EntryType int
|
||||||
|
|
||||||
|
// The differents types of an Entry
|
||||||
const (
|
const (
|
||||||
EntryTypeFile EntryType = iota
|
EntryTypeFile EntryType = iota
|
||||||
EntryTypeFolder
|
EntryTypeFolder
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
package ftp
|
package ftp
|
||||||
|
|
||||||
|
// FTP status codes, defined in RFC 959
|
||||||
const (
|
const (
|
||||||
// Positive Preliminary reply
|
|
||||||
StatusInitiating = 100
|
StatusInitiating = 100
|
||||||
StatusRestartMarker = 110
|
StatusRestartMarker = 110
|
||||||
StatusReadyMinute = 120
|
StatusReadyMinute = 120
|
||||||
StatusAlreadyOpen = 125
|
StatusAlreadyOpen = 125
|
||||||
StatusAboutToSend = 150
|
StatusAboutToSend = 150
|
||||||
|
|
||||||
// Positive Completion reply
|
|
||||||
StatusCommandOK = 200
|
StatusCommandOK = 200
|
||||||
StatusCommandNotImplemented = 202
|
StatusCommandNotImplemented = 202
|
||||||
StatusSystem = 211
|
StatusSystem = 211
|
||||||
@ -29,12 +28,10 @@ const (
|
|||||||
StatusRequestedFileActionOK = 250
|
StatusRequestedFileActionOK = 250
|
||||||
StatusPathCreated = 257
|
StatusPathCreated = 257
|
||||||
|
|
||||||
// Positive Intermediate reply
|
|
||||||
StatusUserOK = 331
|
StatusUserOK = 331
|
||||||
StatusLoginNeedAccount = 332
|
StatusLoginNeedAccount = 332
|
||||||
StatusRequestFilePending = 350
|
StatusRequestFilePending = 350
|
||||||
|
|
||||||
// Transient Negative Completion reply
|
|
||||||
StatusNotAvailable = 421
|
StatusNotAvailable = 421
|
||||||
StatusCanNotOpenDataConnection = 425
|
StatusCanNotOpenDataConnection = 425
|
||||||
StatusTransfertAborted = 426
|
StatusTransfertAborted = 426
|
||||||
@ -44,7 +41,6 @@ const (
|
|||||||
StatusActionAborted = 451
|
StatusActionAborted = 451
|
||||||
Status452 = 452
|
Status452 = 452
|
||||||
|
|
||||||
// Permanent Negative Completion reply
|
|
||||||
StatusBadCommand = 500
|
StatusBadCommand = 500
|
||||||
StatusBadArguments = 501
|
StatusBadArguments = 501
|
||||||
StatusNotImplemented = 502
|
StatusNotImplemented = 502
|
||||||
|
Loading…
Reference in New Issue
Block a user