1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:30:06 -07:00

doc/go1.17: document text/template/parse.SkipFuncCheck

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>
This commit is contained in:
Ariel Mashraki 2021-04-19 22:26:47 +03:00 committed by Ian Lance Taylor
parent 1419ca7cea
commit f6cc392d1d

View 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> <dl id="text/template/parse"><dt><a href="/pkg/text/template/parse/">text/template/parse</a></dt>
<dd> <dd>
<p><!-- CL 301493 --> <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> </p>
</dd> </dd>
</dl><!-- text/template/parse --> </dl><!-- text/template/parse -->