]> Cypherpunks repositories - gostls13.git/commit
text/template: allow eq to take more than two arguments
authorRob Pike <r@golang.org>
Wed, 4 Sep 2013 03:42:22 +0000 (13:42 +1000)
committerRob Pike <r@golang.org>
Wed, 4 Sep 2013 03:42:22 +0000 (13:42 +1000)
commit0ba7ffe2897cd9771de172362e9edcb5f733cf1f
treecffe0c5a5ea63d4803059977ec540811c134f093
parent54b2a83d9ae31bdb7a6c5aa97f7dfa219b40035d
text/template: allow eq to take more than two arguments
Based on an old suggestion by rsc, it compares the second
and following arguments to the first.

Unfortunately the code cannot be as pretty as rsc's original
because it doesn't require identical types.

R=golang-dev, dsymonds, adg
CC=golang-dev
https://golang.org/cl/13509046
src/pkg/text/template/doc.go
src/pkg/text/template/exec_test.go
src/pkg/text/template/funcs.go