Golang (iris webframework) share between handlers
<p>I am currently using the iris web framework and since questions cannot be asked on the issue tracker and the community chat is dead I am asking this here hoping someone helps me out.</p>

<p>I need to pass data to the c.Render function</p>

<p>I have a handler that checks if the user is logged or not. If its not logged I should add an extra button to the html page</p>

<pre><code>iris.Use(userHandler{})

type userHandler struct{
    Allow bool
}

func (u userHandler) Serve(c *iris.Context) {
    ...
    if isLogged {
        // When I call from another middleware (c.Next) c.Render it should know that the user is logged in
    }
    c.Next()
}
</code></pre>

<p>So is it possible to add some default data to the c.Render function?</p>