From bdec5b79f4c677651cafc548edc891851d8b3e48 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 25 Sep 2016 22:35:20 +1000 Subject: [PATCH] Add the non-standard d (Document) type --- gopher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gopher.go b/gopher.go index b3e220d..15d34d1 100644 --- a/gopher.go +++ b/gopher.go @@ -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 "???" }