aboutsummaryrefslogtreecommitdiff
path: root/src/text/template
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2025-02-22 12:37:00 +0000
committerGopher Robot <gobot@golang.org>2025-02-25 11:49:16 -0800
commit77ce76d761debc4cd9d7d3f029ea27cbce3a2db5 (patch)
tree769c2febca7bd31ff7362f6ebf2d251989552355 /src/text/template
parent97571f36103b045a7e9c15a92e9a35ab95fa6be5 (diff)
downloadgo-77ce76d761debc4cd9d7d3f029ea27cbce3a2db5.tar.xz
all: gofmt -w
Change-Id: Ie30a780cbd98bab1e80035b3dfddf92eb281759e GitHub-Last-Rev: 369ada24ffc297efb47768e430b1bd0216706998 GitHub-Pull-Request: golang/go#71898 Reviewed-on: https://go-review.googlesource.com/c/go/+/651795 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Rob Pike <r@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/text/template')
-rw-r--r--src/text/template/exec_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/text/template/exec_test.go b/src/text/template/exec_test.go
index 0a0be43baa..65440901a0 100644
--- a/src/text/template/exec_test.go
+++ b/src/text/template/exec_test.go
@@ -72,11 +72,11 @@ type T struct {
Str fmt.Stringer
Err error
// Pointers
- PI *int
- PS *string
- PSI *[]int
- NIL *int
- UPI unsafe.Pointer
+ PI *int
+ PS *string
+ PSI *[]int
+ NIL *int
+ UPI unsafe.Pointer
EmptyUPI unsafe.Pointer
// Function (not method)
BinaryFunc func(string, string) string
@@ -1508,8 +1508,8 @@ func TestBadFuncNames(t *testing.T) {
func TestIsTrue(t *testing.T) {
var nil_ptr *int
var nil_chan chan int
- tests := []struct{
- v any
+ tests := []struct {
+ v any
want bool
}{
{1, true},
@@ -1522,12 +1522,12 @@ func TestIsTrue(t *testing.T) {
{complex64(0.0), false},
{true, true},
{false, false},
- {[2]int{1,2}, true},
+ {[2]int{1, 2}, true},
{[0]int{}, false},
{[]byte("abc"), true},
{[]byte(""), false},
- {map[string] int {"a": 1, "b": 2}, true},
- {map[string] int {}, false},
+ {map[string]int{"a": 1, "b": 2}, true},
+ {map[string]int{}, false},
{make(chan int), true},
{nil_chan, false},
{new(int), true},