Skip to content

Commit 6ba3e6a

Browse files
committed
doc/go1.15: add html/template and text/template docs
Updates #37419 Change-Id: I23abfeabc6be704aad9da2649bbbe7c8e237dfab Reviewed-on: https://go-review.googlesource.com/c/go/+/240546 Reviewed-by: Carlos Amedee <[email protected]>
1 parent 3b6b86d commit 6ba3e6a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doc/go1.15.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,17 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
666666
</dd>
667667
</dl><!-- go/printer -->
668668

669+
<dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
670+
<dd>
671+
<p><!-- CL 226097 -->
672+
The package now uses Unicode escapes (<code>\uNNNN</code>) in all
673+
JavaScript and JSON contexts. This fixes escaping errors in
674+
<code>application/ld+json</code> and <code>application/json</code>
675+
contexts.
676+
</p>
677+
</dd>
678+
</dl><!-- html/template -->
679+
669680
<dl id="io/ioutil"><dt><a href="/pkg/io/ioutil/">io/ioutil</a></dt>
670681
<dd>
671682
<p><!-- CL 212597 -->
@@ -950,6 +961,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
950961
</dd>
951962
</dl><!-- testing -->
952963

964+
<dl id="text/template"><dt><a href="/pkg/text/template/">text/template</a></dt>
965+
<dd>
966+
<p><!-- CL 226097 -->
967+
<a href="/pkg/text/template/#JSEscape"><code>JSEscape</code></a> now
968+
consistently uses Unicode escapes (<code>\u00XX</code>), which are
969+
compatible with JSON.
970+
</p>
971+
</dd>
972+
</dl><!-- text/template -->
973+
953974
<dl id="time"><dt><a href="/pkg/time/">time</a></dt>
954975
<dd>
955976
<p><!-- CL 220424, CL 217362, golang.org/issue/33184 -->

0 commit comments

Comments
 (0)