aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-10-13 20:10:04 -0400
committeradnano <[email protected]>2020-10-13 20:10:04 -0400
commit4189a4f717879e1b29bc1846746de76d90a7b0d1 (patch)
tree3190d76d559594fd099d04c98eaa0770f11325f2 /fs.go
parentKnownHosts: use map instead of slice for underlying storage (diff)
downloadgo-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.tar.xz
go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.zip
Move errors to gemini.go
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs.go b/fs.go
index f899782..f7c0d16 100644
--- a/fs.go
+++ b/fs.go
@@ -1,7 +1,6 @@
package gmi
import (
- "errors"
"io"
"mime"
"os"
@@ -15,11 +14,6 @@ func init() {
mime.AddExtensionType(".gemini", "text/gemini")
}
-// FileServer errors.
-var (
- ErrNotAFile = errors.New("gemini: not a file")
-)
-
// FileServer takes a filesystem and returns a Handler which uses that filesystem.
// The returned Handler sanitizes paths before handling them.
func FileServer(fsys FS) Handler {