File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -667,12 +667,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
667
667
668
668
< dl id ="regexp "> < dt > < a href ="/pkg/regexp/ "> regexp</ a > </ dt >
669
669
< dd >
670
- < p > <!-- https://go.dev/issue/46159 -->
671
- TODO: < a href ="https://go.dev/issue/46159 "> https://go.dev/issue/46159</ a > : support encoding.TextMarshaler
672
- </ p >
673
-
674
- < p > <!-- CL 479401 -->
675
- TODO: < a href ="https://go.dev/cl/479401 "> https://go.dev/cl/479401</ a > : regexp: add Regexp.TextMarshaler/TextUnmarshaler; modified api/next/46159.txt
670
+ < p > <!-- https://go.dev/issue/46159, CL 479401 -->
671
+ < a href ="/pkg/regexp#Regexp "> < code > Regexp</ code > </ a > now defines
672
+ < a href ="/pkg/regexp#Regexp.MarshalText "> < code > MarshalText</ code > </ a >
673
+ and < a href ="/pkg/regexp#Regexp.UnmarshalText "> < code > UnmarshalText</ code > </ a >
674
+ methods. These implement
675
+ < a href ="/pkg/encoding#TextMarshaler "> < code > encoding.TextMarshaler</ code > </ a >
676
+ and
677
+ < a href ="/pkg/encoding#TextUnmarshaler "> < code > encoding.TextUnmarshaler</ code > </ a >
678
+ and will be used by packages such as
679
+ < a href ="/pkg/encoding/json "> encoding/json</ a > .
676
680
</ p >
677
681
</ dd >
678
682
</ dl > <!-- regexp -->
You can’t perform that action at this time.
0 commit comments