]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: document text/template/parse.SkipFuncCheck
authorAriel Mashraki <ariel@mashraki.co.il>
Mon, 19 Apr 2021 19:26:47 +0000 (22:26 +0300)
committerIan Lance Taylor <iant@golang.org>
Sat, 29 May 2021 00:16:11 +0000 (00:16 +0000)
Documents the newly added mode that skips type checking
functions as per CL 301493.

Fixes #46025
For #34652
For #44513
For #38627

Change-Id: I56c4f65924702a931944796e39f43cfeb66abc8a
Reviewed-on: https://go-review.googlesource.com/c/go/+/311569
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Michael Knyszek <mknyszek@google.com>

doc/go1.17.html

index 3395c4e6700ee3e390b968c5bfb0d01570d20abf..3805a4c14e0d0a3ed8c4e6fc3aad422f31e81cf6 100644 (file)
@@ -647,7 +647,8 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="text/template/parse"><dt><a href="/pkg/text/template/parse/">text/template/parse</a></dt>
   <dd>
     <p><!-- CL 301493 -->
-      TODO: <a href="https://golang.org/cl/301493">https://golang.org/cl/301493</a>: add a mode to skip func-check on parsing
+      The new <a href="/pkg/text/template/parse/#Mode"><code>SkipFuncCheck</code></a> <a href=><code>Mode</code></a>
+      value changes the template parser to not verify that functions are defined.
     </p>
   </dd>
 </dl><!-- text/template/parse -->