mirror of
https://github.com/ii64/sonic.git
synced 2026-06-22 09:26:44 +08:00
fix spelling mistake in README.md (#285)
* fix spelling mistake in README.md * fix spelling mistake in README.md
This commit is contained in:
parent
d1190d6797
commit
dd3e092a5b
1 changed files with 10 additions and 10 deletions
|
|
@ -215,7 +215,7 @@ input := []byte(`{"key1":[{},{"key2":{"key3":[1,2,3]}}]}`)
|
||||||
root, err := sonic.Get(input)
|
root, err := sonic.Get(input)
|
||||||
raw := root.Raw() // == string(input)
|
raw := root.Raw() // == string(input)
|
||||||
|
|
||||||
// multiple pathes
|
// multiple paths
|
||||||
root, err := sonic.Get(input, "key1", 1, "key2")
|
root, err := sonic.Get(input, "key1", 1, "key2")
|
||||||
sub := root.Get("key3").Index(2).Int64() // == 3
|
sub := root.Get("key3").Index(2).Int64() // == 3
|
||||||
```
|
```
|
||||||
|
|
@ -261,7 +261,7 @@ println(string(buf) == string(exp)) // true
|
||||||
- modification: `Set()`, `SetByIndex()`, `Add()`
|
- modification: `Set()`, `SetByIndex()`, `Add()`
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
Sonic **DOSE NOT** ensure to support all environments, due to the difficulty of developing high-performance codes. For developers who use sonic to build their applications in different environments, we have the following suggestions:
|
Sonic **DOES NOT** ensure to support all environments, due to the difficulty of developing high-performance codes. For developers who use sonic to build their applications in different environments, we have the following suggestions:
|
||||||
|
|
||||||
- Developing on **Mac M1**: Make sure you have Rosetta 2 installed on your machine, and set `GOARCH=amd64` when building your application. Rosetta 2 can automatically translate x86 binaries to arm64 binaries and run x86 applications on Mac M1.
|
- Developing on **Mac M1**: Make sure you have Rosetta 2 installed on your machine, and set `GOARCH=amd64` when building your application. Rosetta 2 can automatically translate x86 binaries to arm64 binaries and run x86 applications on Mac M1.
|
||||||
- Developing on **Linux arm64**: You can install qemu and use the `qemu-x86_64 -cpu max` command to convert x86 binaries to amr64 binaries for applications built with sonic. The qemu can achieve similar transfer effect to Rosetta 2 on Mac M1.
|
- Developing on **Linux arm64**: You can install qemu and use the `qemu-x86_64 -cpu max` command to convert x86 binaries to amr64 binaries for applications built with sonic. The qemu can achieve similar transfer effect to Rosetta 2 on Mac M1.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue