Documentation
¶
Index ¶
- func Favicon(w http.ResponseWriter)
- func FileDownload(w http.ResponseWriter, r *http.Request, path string)
- func FilePlay(w http.ResponseWriter, r *http.Request, path string)
- func RenderErrorText(w http.ResponseWriter, resp *ErrorResp)
- type Config
- type EmbedInfo
- type ErrorResp
- type Route
- type RouteType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Favicon ¶
func Favicon(w http.ResponseWriter)
func FileDownload ¶
func FileDownload(w http.ResponseWriter, r *http.Request, path string)
FileDownload 下载文件
func RenderErrorText ¶
func RenderErrorText(w http.ResponseWriter, resp *ErrorResp)
Types ¶
type RouteType ¶
type RouteType string
noinspection all
const ( Static RouteType = "static" // 静态路由 Param RouteType = "param" // 路径参数路由(如 /users/:id) Regex RouteType = "regex" // 正则表达式路由 Wildcard RouteType = "wildcard" // 通配符路由 )
noinspection all
func (RouteType) GormDBDataType ¶
GormDBDataType gorm db data type noinspection all
Click to show internal directories.
Click to hide internal directories.