You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migrate-from-go-std.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ group := ColorGroup{
19
19
b, err:= jsoniter.Marshal(group)
20
20
```
21
21
22
-
Add `import "github.com/json-iterator/go"` and repalce`json.Marshal` with `jsoniter.Marshal`. Then the code should behave exactly the same, just much faster. Unlike easyjson or other json libaries, jsoniter does not rely on static code generation.
22
+
Add `import "github.com/json-iterator/go"` and replace`json.Marshal` with `jsoniter.Marshal`. Then the code should behave exactly the same, just much faster. Unlike easyjson or other json libaries, jsoniter does not rely on static code generation.
23
23
24
24
`Unmarshal`, `NewEncoder`, `NewDecoder` they all works. Existing types implemented `Marshaler` or `Unmarshaler` interface will also work. Map with non-string key also work. Yes, everything just works.
0 commit comments