Documentation
¶
Index ¶
- Variables
- func ContentType(path string) string
- func EscapePath(path string) string
- func IsNameValid(name string) bool
- func IsPathValid(path string) bool
- func JoinNameExt(name, ext string) (fileName string)
- func NormalizeName(name string) string
- func NormalizePath(path string) (newPath string, ok bool)
- func SplitNameExt(fileName string) (name, ext string)
- func UnusedFilename(exists func(string) bool, path string, maxRetries int) (newPath string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MimeMap = map[string]string{}/* 190 elements not displayed */
derived from Python's mimetypes library and nginx mime types https://github.com/koofr/mimemap/blob/master/src/main/scala/net/koofr/Mimemap.scala
Functions ¶
func ContentType ¶
func EscapePath ¶
func IsNameValid ¶
func IsPathValid ¶
func JoinNameExt ¶
func NormalizeName ¶
func NormalizePath ¶
func SplitNameExt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.