Documentation
¶
Index ¶
- func FromFile(filename string) string
- func ServerFileHandler(filename string) func(w http.ResponseWriter, r *http.Request)
- func ServerHandler(content string) func(w http.ResponseWriter, r *http.Request)
- func ServerJSONFileHandler(filename string) func(w http.ResponseWriter, r *http.Request)
- func ServerJSONHandler(content string) func(w http.ResponseWriter, r *http.Request)
- func ToFile(filename string, content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerFileHandler ¶
func ServerFileHandler(filename string) func(w http.ResponseWriter, r *http.Request)
ServerFileHandler serves static content from a file
func ServerHandler ¶
func ServerHandler(content string) func(w http.ResponseWriter, r *http.Request)
ServerHandler serves string content
func ServerJSONFileHandler ¶
func ServerJSONFileHandler(filename string) func(w http.ResponseWriter, r *http.Request)
ServerJSONFileHandler serves static JSON content from a file
func ServerJSONHandler ¶
func ServerJSONHandler(content string) func(w http.ResponseWriter, r *http.Request)
ServerJSONHandler serves string content as JSON
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.