Documentation
¶
Index ¶
- func CustomFileServer(root http.FileSystem) http.Handler
- func ListDirectory(w http.ResponseWriter, r *http.Request, f http.File, templateName string)
- func RequestLogger(handler http.Handler) http.Handler
- func ServeFile(w http.ResponseWriter, r *http.Request, fs http.FileSystem, name string, ...)
- type DirectoryContent
- type FileContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomFileServer ¶
func CustomFileServer(root http.FileSystem) http.Handler
CustomFileServer ...
func ListDirectory ¶
ListDirectory render directory content in templateName.html
Types ¶
type DirectoryContent ¶
type DirectoryContent struct { DirName string Files []FileContent IPAddr string }
DirectoryContent to be used in rendering Index Page
Click to show internal directories.
Click to hide internal directories.