fs: Update documentation
This commit is contained in:
parent
46e10da3a8
commit
5ec8dea1ba
14
fs.go
14
fs.go
@ -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}
|
||||||
}
|
}
|
||||||