go/src/text
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
..
scanner text/scanner: use Go convention in Position doc comment 2021-07-18 21:00:03 +00:00
tabwriter all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
template text/template: use reflect.Value.FieldByIndexErr 2021-10-29 02:12:05 +00:00