Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeFile ¶
func ServeFile(path string) http.HandlerFunc
ServeFile serve given file as http resopnse.
func ServeFolder ¶
func ServeFolder(root string) http.HandlerFunc
ServeFolder serve files in root path as http resopnse. Request folder with index.html will serve as index.html. Request folder without index.html will raise a http forbidden error(403).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.