diff options
| author | adnano <[email protected]> | 2020-10-13 20:10:04 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-13 20:10:04 -0400 |
| commit | 4189a4f717879e1b29bc1846746de76d90a7b0d1 (patch) | |
| tree | 3190d76d559594fd099d04c98eaa0770f11325f2 /fs.go | |
| parent | KnownHosts: use map instead of slice for underlying storage (diff) | |
| download | go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.tar.xz go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.zip | |
Move errors to gemini.go
Diffstat (limited to 'fs.go')
| -rw-r--r-- | fs.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 { |