]> Cypherpunks repositories - gostls13.git/commit
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>
Mon, 20 Sep 2021 23:00:47 +0000 (23:00 +0000)
commitba1c52d7d77724de4407572bd02421c36df3d78a
treeb05a31e2c061e069d2516beaf9920d3e81449c4d
parent6e81f78c0f1653ea140e6c8d008700ddad1fa0a5
text/template: initialize template before locking it

For #39807
Fixes #48436

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