Add String() function

This commit is contained in:
Techassi
2020-07-17 18:01:41 +02:00
parent 5d10dd64f6
commit 3e3979ddc6

5
ftp.go
View File

@@ -810,3 +810,8 @@ func (r *Response) Close() error {
func (r *Response) SetDeadline(t time.Time) error {
return r.conn.SetDeadline(t)
}
// String returns the string representation of EntryType t.
func (t EntryType) String() string {
return [...]string{"file", "folder", "link"}[t]
}