go/src/text/template
Rob Pike d3d8852d89 text/template: use reflect.Value.FieldByIndexErr
to avoid a crash on a nil pointer as an embedded field.

Fixes #48215

Change-Id: I214faa6e3cf08cdec1c01035e4bbca0900c6a408
Reviewed-on: https://go-review.googlesource.com/c/go/+/357963
Trust: Rob Pike <r@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-10-29 02:12:05 +00:00
..
parse html/template: remove unused `mode` field on `Tree` struct 2021-10-18 20:39:22 +00:00
testdata
doc.go html/template, text/template: implement break and continue for range loops 2021-09-23 02:52:10 +00:00
example_test.go
examplefiles_test.go
examplefunc_test.go
exec.go text/template: use reflect.Value.FieldByIndexErr 2021-10-29 02:12:05 +00:00
exec_test.go text/template: use reflect.Value.FieldByIndexErr 2021-10-29 02:12:05 +00:00
funcs.go text/template: implement short-circuit and, or 2021-09-21 14:02:52 +00:00
helper.go
link_test.go
multi_test.go text/template: initialize template before locking it 2021-09-20 23:00:47 +00:00
option.go all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
template.go text/template: initialize template before locking it 2021-09-20 23:00:47 +00:00