Skip to content

Commit af5497e

Browse files
authored
Update data_and_memory.md
add code for go
1 parent eeb0aec commit af5497e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/chapter_data_structure/data_and_memory.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ comments: true
7474
=== "Go"
7575

7676
```go title=""
77-
77+
var numbers =[5]int{}
78+
var decimals =[5]float64{}
79+
// go 里没有char ,但有 rune/byte 代替 char
80+
var characters =[5]byte{}
81+
var booleans =[5]bool{}
7882
```
7983

8084
=== "JavaScript"

0 commit comments

Comments
 (0)