]> Cypherpunks repositories - gostls13.git/commit
text/template: support all comparable types in eq
authorAriel Mashraki <ariel@mashraki.co.il>
Fri, 6 Sep 2019 15:04:51 +0000 (18:04 +0300)
committerRob Pike <r@golang.org>
Wed, 25 Sep 2019 09:13:11 +0000 (09:13 +0000)
commit95cbcc5c1c5db05e659b769784e57db777c4cd6a
treea028407ef631d037c48274e4495d02c2840745f7
parent434e4caf1b93530b225494ba30d9e39ba15ecf4f
text/template: support all comparable types in eq

Extends the built-in eq function to support all Go
comparable types.

Fixes #33740

Change-Id: I522310e313e251c4dc6a013d33d7c2034fe2ec8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/193837
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/doc.go
src/text/template/exec_test.go
src/text/template/funcs.go