Gerasimos (Makis) Maropoulos
Gerasimos (Makis) Maropoulos
Hello @weijchun, Whatever works for gin and net/http works for Iris too. Take for example, the [endless](https://github.com/fvbock/endless) package you mentioned, it wants an `http.Handler (mux)` on its `endless.ListenAndServe("localhost:4242", mux)` function....
Hello @ierehon1905, can you show us the code snippet you used to do it?
Hello @aadog, there is not any http request information inside these type of template functions. You have to pass the information from the template code itself, e.g. `activeClass("the route name...
I think that's very wrong, we can't edit the template's functions for each incoming request! Instead do this @aadog: ```go tmpl.AddFunc("activeClass", func(routeName string, uri string) string { return routeName })...
@aadog it's very easy to add the ctx into the binding data, there is no need to be there for all projects because most of them will not use it...
Hello @baichachaa, I can't re-produce this one, I am on windows and hidden folders are not shown in the directory listing. There is the `ShowHidden` option field, it only shows...
Hello @darkweak, We have a [cache package](https://github.com/kataras/iris/issues/github.com/kataras/iris/tree/master/cache) and [examples](https://github.com/kataras/iris/tree/master/cache). However, I see your point. That's totally different and we can implement it for Iris too, it's not so hard (it...
Hello @qiuhongshuai, You are using `bufio.NewWriter` and that's why it waits for buffer to fill and then it flushes the contents to the file. When you are using file with...
Hello @agoncecelia, Can you share the code snippet so I can re-produce it with ease?
Hello @hanyue2019 , the method you described in the article, is also described at: https://github.com/kataras/iris/blob/8359c9a0f5b0eadfc16ae24f879b477a18a8b9a4/_examples/experimental-handlers/cors/simple/main.go#L8-L21 ```go crs := func(ctx iris.Context) { ctx.Header("Access-Control-Allow-Origin", "*") ctx.Header("Access-Control-Allow-Credentials", "true") if ctx.Method() == iris.MethodOptions {...