docs(array.md): Added go array initialization code example
This commit is contained in:
parent
18c43566b4
commit
b01297660a
@ -43,7 +43,9 @@ comments: true
|
|||||||
=== "Go"
|
=== "Go"
|
||||||
|
|
||||||
```go title="array.go"
|
```go title="array.go"
|
||||||
|
/* 初始化数组 */
|
||||||
|
var arr [5]int // {0, 0, 0, 0, 0}
|
||||||
|
nums := [5]int{1, 3, 2, 5, 4}
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "JavaScript"
|
=== "JavaScript"
|
||||||
|
Loading…
Reference in New Issue
Block a user