Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ruslanBik4 opened this issue Jul 29, 2020 · 3 comments
Closed

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

ruslanBik4 opened this issue Jul 29, 2020 · 3 comments
Labels

Comments

@ruslanBik4
Copy link

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

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

valyala added a commit that referenced this issue Jul 29, 2020
@valyala valyala added the bug label Jul 29, 2020
@valyala
Copy link
Owner

valyala commented Jul 29, 2020

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

@valyala
Copy link
Owner

valyala commented Jul 29, 2020

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

@ruslanBik4
Copy link
Author

Thank. This work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants