Discover Packages
github.com/oneleo/fsgo/fileserver
package
module
Version:
v0.0.0-...-2d5a06f
Opens a new window with list of versions in this module.
Published: Feb 25, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DirAddName implements FileSystem using os.Stat, checking files for reading rooted and relative to the directory dir.
RequestName returns a string name that serves HTTP requests by removing the given prefix from the request URL's Path and invoking the request r. The name is '/'-separated.
func RootPath(dir string ) (rootPaths, rootPathName []string )
RootPath traverse all root path for giving dir.
type Module struct {
Path string
}
Module contain http file server module.
Compress module will zip the specified path.
type ReRender struct {
HandlePattern string
FileServerDir string
}
ReRender will re-render Body with http.FileServer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.