修正语法错误, 添加 Route 命令.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
f67aa8ed49
commit
a266fa34ef
|
@ -0,0 +1,9 @@
|
||||||
|
# Route 命令
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 添加
|
||||||
|
route add default gw 192.168.56.1 dev eth0
|
||||||
|
# 删除
|
||||||
|
route del default
|
||||||
|
route del default dev enp0s8
|
||||||
|
```
|
|
@ -46,7 +46,7 @@ func main() {
|
||||||
|
|
||||||
说明: 由于 json.UnMarshal() 方法接收的是字节切片,所以首先需要把 JSON 字符串转换成字节切片 c := []byte(s)
|
说明: 由于 json.UnMarshal() 方法接收的是字节切片,所以首先需要把 JSON 字符串转换成字节切片 c := []byte(s)
|
||||||
|
|
||||||
Playground url: https://play.golang.org/p/mcB...
|
Playground url: <https://play.golang.org/p/mcB...>
|
||||||
|
|
||||||
## 2.解析内嵌对象的 JSON
|
## 2.解析内嵌对象的 JSON
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ type FruitBasket struct {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Playground url: https://play.golang.org/p/dqw...
|
Playground url: <https://play.golang.org/p/dqw...>
|
||||||
|
|
||||||
## 3.解析内嵌对象数组的 JSON(Embed Array of Object)
|
## 3.解析内嵌对象数组的 JSON(Embed Array of Object)
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ func main() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Playground url: https://play.golang.org/p/fh8...
|
Playground url: <https://play.golang.org/p/fh8...>
|
||||||
|
|
||||||
## 5.解析包含任意层级的数组和对象的 JSON 数据(arbitrary arrays and objects)
|
## 5.解析包含任意层级的数组和对象的 JSON 数据(arbitrary arrays and objects)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue