Add the non-standard d (Document) type

This commit is contained in:
James Mills 2016-09-25 22:35:20 +10:00
parent a4d1dd195b
commit bdec5b79f4
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@ const (
HTML = ItemType('h') // Item is a HTML document
AUDIO = ItemType('s') // Item is an Audio file
PNG = ItemType('p') // Item is a PNG Image
DOC = ItemType('d') // Item is a Document
)
const (
@ -140,6 +141,8 @@ func (it ItemType) String() string {
return "SND"
case PNG:
return "PNG"
case DOC:
return "DOC"
default:
return "???"
}