Documentation
¶
Overview ¶
Index ¶
- Variables
- func File(ctx *gin.Context, FilePath string)
- func FileFromFS(ctx *gin.Context, name string, fs http.FileSystem)
- func Static(group gin.IRoutes, relativePath, root string) gin.IRoutes
- func StaticFS(group gin.IRoutes, relativePath string, fs http.FileSystem) gin.IRoutes
- func StaticFile(group gin.IRoutes, relativePath, filepath string) gin.IRoutes
- func StaticFileFS(group gin.IRoutes, relativePath, filepath string, fs http.FileSystem) gin.IRoutes
- type EncodeListItem
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableDebugHeader = true
Encoding-By: gzipstatic-gin
View Source
var EncodeList = []*EncodeListItem{ { // contains filtered or unexported fields }, { // contains filtered or unexported fields }, }
Priority from high to low
View Source
var ExtFillter = regexp.MustCompile(`\.(html|htm|js|json|css)$`)
View Source
var NoRoute gin.HandlerFunc = nil
Functions ¶
func FileFromFS ¶
func FileFromFS(ctx *gin.Context, name string, fs http.FileSystem)
func StaticFileFS ¶
Types ¶
type EncodeListItem ¶
type EncodeListItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.