From dcb27e8a660a5f29de374730cb2fc9f467dae9cc Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 26 May 2023 14:16:24 -0700 Subject: [PATCH] doc/go1.21: mention regexp.MarshalText and UnmarshalText For #46159 Change-Id: Ia9cc0827a89d362532d1a662b791de8eebbfb2fe Reviewed-on: https://go-review.googlesource.com/c/go/+/498756 Reviewed-by: Ian Lance Taylor Reviewed-by: Eli Bendersky Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot --- doc/go1.21.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index 21d2b35eaf..b959cdb116 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -667,12 +667,16 @@ Do not send CLs removing the interior tags from such phrases.
regexp
-

- TODO: https://go.dev/issue/46159: support encoding.TextMarshaler -

- -

- TODO: https://go.dev/cl/479401: regexp: add Regexp.TextMarshaler/TextUnmarshaler; modified api/next/46159.txt +

+ Regexp now defines + MarshalText + and UnmarshalText + methods. These implement + encoding.TextMarshaler + and + encoding.TextUnmarshaler + and will be used by packages such as + encoding/json.