Add the non-standard d (Document) type
This commit is contained in:
parent
a4d1dd195b
commit
bdec5b79f4
|
@ -54,6 +54,7 @@ const (
|
||||||
HTML = ItemType('h') // Item is a HTML document
|
HTML = ItemType('h') // Item is a HTML document
|
||||||
AUDIO = ItemType('s') // Item is an Audio file
|
AUDIO = ItemType('s') // Item is an Audio file
|
||||||
PNG = ItemType('p') // Item is a PNG Image
|
PNG = ItemType('p') // Item is a PNG Image
|
||||||
|
DOC = ItemType('d') // Item is a Document
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -140,6 +141,8 @@ func (it ItemType) String() string {
|
||||||
return "SND"
|
return "SND"
|
||||||
case PNG:
|
case PNG:
|
||||||
return "PNG"
|
return "PNG"
|
||||||
|
case DOC:
|
||||||
|
return "DOC"
|
||||||
default:
|
default:
|
||||||
return "???"
|
return "???"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue