From: ShihCheng Tu
Date: Sun, 14 Jun 2020 16:07:10 +0000 (+0800)
Subject: doc/go1.14: document json.Umarshal map key support of TextUnmarshaler
X-Git-Tag: go1.16beta1~1192
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=47b450997778163dfed6f58cae379d928fc37687;p=gostls13.git
doc/go1.14: document json.Umarshal map key support of TextUnmarshaler
Document that json.Unmarshal supports map keys whose underlying
types implement encoding.TextUnmarshaler.
Fixes #38801
Change-Id: Icb9414e9067517531ba0da910bd4a2bb3daace65
Reviewed-on: https://go-review.googlesource.com/c/go/+/237857
Reviewed-by: Daniel MartÃ
Run-TryBot: Daniel MartÃ
TryBot-Result: Gobot Gobot
---
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 Unmarshaler
.
+
+
+ Unmarshal
+ can now support map keys with string underlying type which implement
+ encoding.TextUnmarshaler
.
+