]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.17] text/template: initialize template before locking it
authorIan Lance Taylor <iant@golang.org>
Fri, 17 Sep 2021 19:27:23 +0000 (12:27 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 23 Sep 2021 21:18:37 +0000 (21:18 +0000)
commitc5c1d069da73a5e74bd2139ef1c7c14659915acd
treec917b16edf734b5814ee9f51c6c13a4367b9369c
parentabc4f092acf9bb65e56fcbd6ee7b2c76cee57ad7
[release-branch.go1.17] text/template: initialize template before locking it

For #39807
For #48436
Fixes #48444

Change-Id: I75f82fd8738dd2f11f0c69b1230e1be1abc36024
Reviewed-on: https://go-review.googlesource.com/c/go/+/350730
Trust: Ian Lance Taylor <iant@golang.org>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
(cherry picked from commit ba1c52d7d77724de4407572bd02421c36df3d78a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/351115
src/text/template/multi_test.go
src/text/template/template.go