Go Source:
https://play.golang.org/p/dMKNy4pTnb

Expected:

[ ok] Element 0 is zero
[ ok] Element 0 is zero
[ ok] Element 0 is zero

Actual:

[ ok] Element 0 is zero
[ ok] Element 0 is zero
[err] template: :1:15: executing "" at <index . 0>: error calling index: 
value has type int; should be int32 


I think "untyped" integer in template should become not only "int", but 
also "int32", "int64", ......

Is there possible workaround to index from map with key type is int32?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to