]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: add encoding/json note for tag change
authorJoe Tsai <joetsai@digital-static.net>
Tue, 1 Dec 2020 22:59:23 +0000 (14:59 -0800)
committerJoe Tsai <thebrokentoaster@gmail.com>
Thu, 3 Dec 2020 01:27:00 +0000 (01:27 +0000)
For #40700
Fixes #42898

Change-Id: I652657ff8d6cce20bf868f0b1101d723d3f704d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/274614
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/go1.16.html

index 2132cbc9c1d026a1753dbb8d9dcd882fbfeb5207..086557ca48bc987cb77508984cf23b05ebcb8add 100644 (file)
@@ -456,7 +456,11 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="encoding/json"><dt><a href="/pkg/encoding/json/">encoding/json</a></dt>
   <dd>
     <p><!-- CL 234818 -->
-      TODO: <a href="https://golang.org/cl/234818">https://golang.org/cl/234818</a>: allow semicolon in field key / struct tag
+      The <code>json</code> struct field tags understood by
+      <a href="/pkg/encoding/json/#Marshal"><code>Marshal</code></a>,
+      <a href="/pkg/encoding/json/#Unmarshal"><code>Unmarshal</code></a>,
+      and related functionality now permit semicolon characters within
+      a JSON object name for a Go struct field.
     </p>
   </dd>
 </dl><!-- encoding/json -->