mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
fmt
parent
21cf8efdd2
commit
b774aafbec
|
@ -100,7 +100,9 @@ iris.FileServer(directory string, options ...DirOptions)
|
|||
**Usage**
|
||||
|
||||
```go
|
||||
handler := iris.FileServer("./assets", iris.DirOptions {ShowList: true, Gzip: true, IndexName: "index.html"})
|
||||
handler := iris.FileServer("./assets", iris.DirOptions {
|
||||
ShowList: true, Gzip: true, IndexName: "index.html",
|
||||
})
|
||||
```
|
||||
|
||||
Examples can be found at: https://github.com/kataras/iris/tree/v11.2.0/_examples/file-server
|
||||
|
|
Loading…
Reference in New Issue
Block a user