]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] 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:29 +0000 (21:18 +0000)
commit7d573240307331c2dc9edfbb11ebbaa6bc677e99
tree8db9ef5e830fbdbb3c9c32a7ac70ba6176b299f7
parent552410fec2c662b8cc003c27b239d8b5bb11fcd7
[release-branch.go1.16] text/template: initialize template before locking it

For #39807
For #48436
Fixes #48443

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/+/351116
src/text/template/multi_test.go
src/text/template/template.go