Skip to content

Commit

Permalink
FIX TYPO: Gin by default useR -> ... useS (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
runebone committed Sep 18, 2022
1 parent 2c9e5fe commit 814cd18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (group *RouterGroup) StaticFile(relativePath, filepath string) IRoutes {

// StaticFileFS works just like `StaticFile` but a custom `http.FileSystem` can be used instead..
// router.StaticFileFS("favicon.ico", "./resources/favicon.ico", Dir{".", false})
// Gin by default user: gin.Dir()
// Gin by default uses: gin.Dir()
func (group *RouterGroup) StaticFileFS(relativePath, filepath string, fs http.FileSystem) IRoutes {
return group.staticFileHandler(relativePath, func(c *Context) {
c.FileFromFS(filepath, fs)
Expand Down Expand Up @@ -189,7 +189,7 @@ func (group *RouterGroup) Static(relativePath, root string) IRoutes {
}

// StaticFS works just like `Static()` but a custom `http.FileSystem` can be used instead.
// Gin by default user: gin.Dir()
// Gin by default uses: gin.Dir()
func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem) IRoutes {
if strings.Contains(relativePath, ":") || strings.Contains(relativePath, "*") {
panic("URL parameters can not be used when serving a static folder")
Expand Down

0 comments on commit 814cd18

Please sign in to comment.