mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446 Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
This commit is contained in:
@@ -14,7 +14,7 @@ which overrides any previous loaders like `JetEngine.Binary` we use on this exam
|
||||
## How to run
|
||||
|
||||
```sh
|
||||
$ go get -u github.com/go-bindata/go-bindata/...
|
||||
$ go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
||||
$ go-bindata ./views/...
|
||||
$ go build
|
||||
$ ./template_jet_0_embedded
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/kataras/iris/v12"
|
||||
)
|
||||
|
||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
||||
// $ go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
||||
// $ go-bindata ./views/...
|
||||
// $ go run .
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user