Documentation
¶
Index ¶
- func CleanTempFile(file *os.File)
- func GetUpload(r *http.Request) (file io.Reader, filename, contentType string, contentLength int64, err error)
- func SanitizeFilename(filename string) string
- func SendJSON(w http.ResponseWriter, data interface{})
- func SendPlain(w http.ResponseWriter, data string)
- func ShowInline(contentType string) bool
- func ValidateContentType(h http.Header) bool
- type OptionFn
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTempFile ¶
func SanitizeFilename ¶
func SendJSON ¶
func SendJSON(w http.ResponseWriter, data interface{})
func SendPlain ¶
func SendPlain(w http.ResponseWriter, data string)
func ShowInline ¶
func ValidateContentType ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.