Skip to content
Myr

FIX TYPO: Gin by default useR -> ... useS (#3324)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Konstantin Runov · committed by GitHub · parent 2c9e5fe · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:routergroup.go+2 added-2 removed
159 unmodified lines
160}161162// StaticFileFS works just like `StaticFile` but a custom `http.FileSystem` can be used instead..163// router.StaticFileFS("favicon.ico", "./resources/favicon.ico", Dir{".", false})164// Gin by default user: gin.Dir()164// Gin by default uses: gin.Dir()165func (group *RouterGroup) StaticFileFS(relativePath, filepath string, fs http.FileSystem) IRoutes {166 return group.staticFileHandler(relativePath, func(c *Context) {167 c.FileFromFS(filepath, fs)168 })
19 unmodified lines
188 return group.StaticFS(relativePath, Dir(root, false))189}190191// StaticFS works just like `Static()` but a custom `http.FileSystem` can be used instead.192// Gin by default user: gin.Dir()192// Gin by default uses: gin.Dir()193func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem) IRoutes {194 if strings.Contains(relativePath, ":") || strings.Contains(relativePath, "*") {195 panic("URL parameters can not be used when serving a static folder")196 }
53 unmodified lines