docs(array.md): Added go array initialization code example

This commit is contained in:
龚国玮 2022-12-26 11:34:17 +08:00
parent 18c43566b4
commit b01297660a

View File

@ -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"