Iris v11.2.2 Release Notes

Release Date: 2019-07-24 // 7 months ago
  • Sessions as middleware:

    import "github.com/kataras/iris/sessions"// [...]app := iris.New()sess := sessions.New(sessions.Config{...}) app.Get("/path", func(ctx iris.Context){ session := sessions.Get(ctx) // [work with session...]})
    
    • ➕ Add Session.Len() int to return the total number of stored values/entries.
    • 👉 Make Context.HTML and Context.Text to accept an optional, variadic, args ...interface{} input arg(s) too.

    🚀 Read about the full 11.2 release at: https://dev.to/kataras/iris-version-11-2-released-22bc

    📚 The whole documentation lives in one single spot now: https://github.com/kataras/iris/wiki