]> Cypherpunks repositories - gostls13.git/commit
text/template: use "IsValid" instead of "!= zero" to compare zero Value
authorJes Cok <xigua67damn@gmail.com>
Tue, 1 Aug 2023 13:28:14 +0000 (13:28 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 3 Aug 2023 15:59:13 +0000 (15:59 +0000)
commite4aec1fa8a9c57672b783d16dd122cb4e6708089
tree4b5e0c200e72ce1d4d5611227c4d2d666e327d77
parent3687f77069a8f40a596be7bd848985990908f0d9
text/template: use "IsValid" instead of "!= zero" to compare zero Value

See CL 308769

Change-Id: I0caa0a84215b3d4b8b3dc6f041b6cd9cbe2c0908
GitHub-Last-Rev: e3aa5bde23fe26cbb6711a6ffbf4856a23fa6f54
GitHub-Pull-Request: golang/go#61657
Reviewed-on: https://go-review.googlesource.com/c/go/+/514195
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/text/template/funcs.go