You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, I pass many variables via map[string]interface{}
A string can be printed with <%=v model["errorMsg"] %>
and hero will generate: hero.EscapeHTML(fmt.Sprintf("%v", model["errorMsg"]), _buffer)
I think it would be handy if there is a casting option so here can generate the code like: hero.EscapeHTML(model["errorMsg"].(string), _buffer)
The text was updated successfully, but these errors were encountered:
In some cases, I pass many variables via map[string]interface{}
A string can be printed with <%=v model["errorMsg"] %>
and hero will generate:
hero.EscapeHTML(fmt.Sprintf("%v", model["errorMsg"]), _buffer)
I think it would be handy if there is a casting option so here can generate the code like:
hero.EscapeHTML(model["errorMsg"].(string), _buffer)
The text was updated successfully, but these errors were encountered: