aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShihCheng Tu <mrtoastcheng@gmail.com>2020-06-15 00:07:10 +0800
committerCarlos Amedee <carlos@golang.org>2020-09-02 13:39:54 +0000
commit60fdbce6fd02e226454ae28c8644b3052a793c3e (patch)
treef9232260cbdf867918341929d7dcff520167b791
parenta269e5f9391ee462cd94ccfb59c8c4460d4a7eb7 (diff)
downloadgo-60fdbce6fd02e226454ae28c8644b3052a793c3e.tar.gz
go-60fdbce6fd02e226454ae28c8644b3052a793c3e.zip
[release-branch.go1.15] doc/go1.14: document json.Umarshal map key support of TextUnmarshaler
Document that json.Unmarshal supports map keys whose underlying types implement encoding.TextUnmarshaler. Updates #38801. Fixes #41178. Change-Id: Icb9414e9067517531ba0da910bd4a2bb3daace65 Reviewed-on: https://go-review.googlesource.com/c/go/+/237857 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> (cherry picked from commit 47b450997778163dfed6f58cae379d928fc37687) Reviewed-on: https://go-review.googlesource.com/c/go/+/252618 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
-rw-r--r--doc/go1.14.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/go1.14.html b/doc/go1.14.html
index 35a9f3c2f3..410e0cbf7c 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -609,6 +609,12 @@ Do not send CLs removing the interior tags from such phrases.
If a program needs to accept invalid numbers like the empty string,
consider wrapping the type with <a href="/pkg/encoding/json/#Unmarshaler"><code>Unmarshaler</code></a>.
</p>
+
+ <p><!-- CL 200237 -->
+ <a href="/pkg/encoding/json/#Unmarshal"><code>Unmarshal</code></a>
+ can now support map keys with string underlying type which implement
+ <a href="/pkg/encoding/#TextUnmarshaler"><code>encoding.TextUnmarshaler</code></a>.
+ </p>
</dd>
</dl><!-- encoding/json -->