Skip to content

Commit ad065ee

Browse files
authored
Update migrate-from-go-std.md
1 parent 3c3ab74 commit ad065ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

migrate-from-go-std.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ group := ColorGroup{
1919
b, err := jsoniter.Marshal(group)
2020
```
2121

22-
add `import "github.com/json-iterator/go"` and repalce `json.Marshal` with `jsoniter.Marshal`.
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.
23+
2324
`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.
2425

2526
# 100% Compatibility

0 commit comments

Comments
 (0)