Skip to content

Commit

Permalink
📝 docs(filesystem): fix statik filesystem middleware example typo (#2302
Browse files Browse the repository at this point in the history
)

docs(filesystem): fix statik filesystem middleware example typo
  • Loading branch information
100gle authored Jan 18, 2023
1 parent 5406560 commit 07ab882
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions middleware/filesystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@ import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"

"<Your go module>/statik"
// Use blank to invoke init function and register data to statik
_ "<Your go module>/statik"
fs "github.com/rakyll/statik/fs"
)

func main() {
statik, err := fs.New()
statikFS, err := fs.New()
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 07ab882

Please sign in to comment.