1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-18 22:57:33 +02:00
This commit is contained in:
Tao Wen
2018-02-24 22:04:41 +08:00
parent 8d6662b81b
commit fff342fd04
72 changed files with 165 additions and 176 deletions

@ -111,7 +111,6 @@ func ExampleMapKey() {
type MyKey string
func (m *MyKey) MarshalText() ([]byte, error) {
return []byte(strings.Replace(string(*m), "h", "H", -1)), nil
}
@ -120,4 +119,3 @@ func (m *MyKey) UnmarshalText(text []byte) error {
*m = MyKey(text[:3])
return nil
}