valyala / quicktemplate

Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

don't work {% case []string %} inside {% switch r.(type) %}

ruslanBik4 opened this issue · comments

Выдает такое:
invalid statement "case []string" at file "views/templates/system/routeTable/table_row.qtpl", line 68, pos 37, token "[]string"

вроде должно же штатно обработать?
С одиночными типами работает только в путь

The bug should be fixed in v1.5.2. @ruslanBik4 , could you verify whether the bug is fixed there?

You should run go get -u github.com/valyala/quicktemplate/qtc in order to update qtc compiler.