Skip to content

Commit

Permalink
Update README.md (#2114)
Browse files Browse the repository at this point in the history
some demo codes missing parenthesis, i added them to make that codes could be copied and run
  • Loading branch information
dayuoba authored Sep 22, 2022
1 parent 72397a7 commit d461bf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions middleware/filesystem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func main() {

app.Use("/assets", filesystem.New(filesystem.Config{
Root: pkger.Dir("/assets"),
})
}))

log.Fatal(app.Listen(":3000"))
}
Expand All @@ -148,7 +148,7 @@ func main() {

app.Use("/assets", filesystem.New(filesystem.Config{
Root: packr.New("Assets Box", "/assets"),
})
}))

log.Fatal(app.Listen(":3000"))
}
Expand All @@ -173,7 +173,7 @@ func main() {

app.Use("/assets", filesystem.New(filesystem.Config{
Root: rice.MustFindBox("assets").HTTPBox(),
})
}))

log.Fatal(app.Listen(":3000"))
}
Expand All @@ -198,7 +198,7 @@ func main() {

app.Use("/assets", filesystem.New(filesystem.Config{
Root: myEmbeddedFiles.HTTP,
})
}))

log.Fatal(app.Listen(":3000"))
}
Expand Down Expand Up @@ -229,7 +229,7 @@ func main() {

app.Use("/", filesystem.New(filesystem.Config{
Root: statikFS,
})
}))

log.Fatal(app.Listen(":3000"))
}
Expand Down

0 comments on commit d461bf2

Please sign in to comment.