mirror of
https://github.com/golang/go.git
synced 2025-05-19 22:33:25 +00:00
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 <iant@google.com> Reviewed-by: Eli Bendersky <eliben@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
260a9b0a07
commit
dcb27e8a66
@ -667,12 +667,16 @@ Do not send CLs removing the interior tags from such phrases.
|
||||
|
||||
<dl id="regexp"><dt><a href="/pkg/regexp/">regexp</a></dt>
|
||||
<dd>
|
||||
<p><!-- https://go.dev/issue/46159 -->
|
||||
TODO: <a href="https://go.dev/issue/46159">https://go.dev/issue/46159</a>: support encoding.TextMarshaler
|
||||
</p>
|
||||
|
||||
<p><!-- CL 479401 -->
|
||||
TODO: <a href="https://go.dev/cl/479401">https://go.dev/cl/479401</a>: regexp: add Regexp.TextMarshaler/TextUnmarshaler; modified api/next/46159.txt
|
||||
<p><!-- https://go.dev/issue/46159, CL 479401 -->
|
||||
<a href="/pkg/regexp#Regexp"><code>Regexp</code></a> now defines
|
||||
<a href="/pkg/regexp#Regexp.MarshalText"><code>MarshalText</code></a>
|
||||
and <a href="/pkg/regexp#Regexp.UnmarshalText"><code>UnmarshalText</code></a>
|
||||
methods. These implement
|
||||
<a href="/pkg/encoding#TextMarshaler"><code>encoding.TextMarshaler</code></a>
|
||||
and
|
||||
<a href="/pkg/encoding#TextUnmarshaler"><code>encoding.TextUnmarshaler</code></a>
|
||||
and will be used by packages such as
|
||||
<a href="/pkg/encoding/json">encoding/json</a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- regexp -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user