]> Cypherpunks repositories - gostls13.git/commit
text/template: support indexing into *int* maps
authorEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 22 May 2017 21:17:38 +0000 (15:17 -0600)
committerIan Lance Taylor <iant@golang.org>
Sat, 12 Aug 2017 00:21:16 +0000 (00:21 +0000)
commit590c5b08070dfb2ddeb2b2583acc3a2b0fcb03bb
tree2f43c907050ff5017a5c5117f4d1c660cf146e05
parent057a34a281a52b474184614ac63b808974e22549
text/template: support indexing into *int* maps

Ensure that we can index maps whose key types are:
* int
* uint
* int32
* uint32
* int64
* uint64
* uintptr

Fixes #20439

Change-Id: I8fa96b14073c8af72786482ff4ffc3508064ea86
Reviewed-on: https://go-review.googlesource.com/43850
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/text/template/exec_test.go
src/text/template/funcs.go