fs: Update documentation

This commit is contained in:
Adnan Maolood 2021-02-14 19:27:56 -05:00
parent 46e10da3a8
commit 5ec8dea1ba

14
fs.go
View File

@ -14,10 +14,8 @@ func init() {
} }
// FileServer returns a handler that serves Gemini requests with the contents // FileServer returns a handler that serves Gemini requests with the contents
// of the file system rooted at root. // of the provided file system.
// The returned handler cleans paths before handling them. // The returned handler cleans paths before handling them.
//
// TODO: Use io/fs.FS when available.
func FileServer(fsys FS) Handler { func FileServer(fsys FS) Handler {
return fsHandler{fsys} return fsHandler{fsys}
} }