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
text/template: cannot index with literal integer from map[int32]string #20439
Comments
must be a
|
This is just a bug. Constants are supposed to be ideal-like and should convert to int32 here. |
Or, if somebody has an easy fix this week, Go 1.9 is fine too. |
CL https://golang.org/cl/43850 mentions this issue. |
Cool, thanks for the information, for starters, I've mailed https://go-review.googlesource.com/43850. |
I mailed a CL for Go1.9 on that day as per #20439 (comment). Should we instead mark it as for Go1.10? |
What version of Go are you using (
go version
)?go1.8
What operating system and processor architecture are you using (
go env
)?(go playground)
What did you do?
https://play.golang.org/p/dMKNy4pTnb
What did you expect to see?
What did you see instead?
I think "untyped" integer in template should become not only "int", but also "int32", "int64", ......
The text was updated successfully, but these errors were encountered: