mirror of https://github.com/golang/go.git
This adds a new lock protecting "tmpl". This is a copy of https://golang.org/cl/257817 by Andreas Fleig, updated for current tip, and updated to start running the html/template TestEscapeRace test. Thanks to @bep for providing the test case. Fixes #39807 Change-Id: Ic8874484290283a49116812eeaffb8608346dc70 Reviewed-on: https://go-review.googlesource.com/c/go/+/316669 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> |
||
|---|---|---|
| .. | ||
| testdata | ||
| attr.go | ||
| attr_string.go | ||
| clone_test.go | ||
| content.go | ||
| content_test.go | ||
| context.go | ||
| css.go | ||
| css_test.go | ||
| delim_string.go | ||
| doc.go | ||
| element_string.go | ||
| error.go | ||
| escape.go | ||
| escape_test.go | ||
| example_test.go | ||
| examplefiles_test.go | ||
| exec_test.go | ||
| html.go | ||
| html_test.go | ||
| js.go | ||
| js_test.go | ||
| jsctx_string.go | ||
| multi_test.go | ||
| state_string.go | ||
| template.go | ||
| template_test.go | ||
| transition.go | ||
| transition_test.go | ||
| url.go | ||
| url_test.go | ||
| urlpart_string.go | ||