From b206825c5749bd4ea8d6772f440746839396f72a Mon Sep 17 00:00:00 2001 From: James Mills Date: Thu, 22 Sep 2016 23:48:35 +1000 Subject: [PATCH] Added non-standard p/PNG type --- gopher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gopher.go b/gopher.go index 3f48508..c8b5bb2 100644 --- a/gopher.go +++ b/gopher.go @@ -54,6 +54,7 @@ const ( INFO = ItemType('i') // Item is an informational message HTML = ItemType('h') // Item is a HTML document AUDIO = ItemType('s') // Item is an Audio file + PNG = ItemType('p') // Item is a PNG Image ) const ( @@ -138,6 +139,8 @@ func (it ItemType) String() string { return "HTML" case AUDIO: return "AUDIO" + case PNG: + return "PNG" default: return "UNKNOWN" }