Skip to content

Commit

Permalink
doc: go1.12: mention change in text/template user function panic
Browse files Browse the repository at this point in the history
Updates golang#28242

Change-Id: Ib717b64f1f368cc889895a2437ff2943ed4eab0d
Reviewed-on: https://go-review.googlesource.com/c/159998
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
ianlancetaylor authored and nebulabox committed Feb 20, 2019
1 parent 52489cb commit 8a67f58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/go1.12.html
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,12 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<code>executing "tmpl" at <.very.deep.context.value.notpresent>: map has no entry for key "notpresent"</code>
</p>

<dd>
<p><!-- CL 143097 -->
If a user-defined function called by a template panics, the
panic is now caught and returned as an error by
the <code>Execute</code> or <code>ExecuteTemplate</code> method.
</p>
</dl><!-- text/template -->

<dl id="unsafe"><dt><a href="/pkg/unsafe/">unsafe</a></dt>
Expand Down

0 comments on commit 8a67f58

Please sign in to comment.