Update data_and_memory.md
add code for go
This commit is contained in:
parent
eeb0aec2f1
commit
af5497e70b
@ -74,7 +74,11 @@ comments: true
|
|||||||
=== "Go"
|
=== "Go"
|
||||||
|
|
||||||
```go title=""
|
```go title=""
|
||||||
|
var numbers =[5]int{}
|
||||||
|
var decimals =[5]float64{}
|
||||||
|
// go 里没有char ,但有 rune/byte 代替 char
|
||||||
|
var characters =[5]byte{}
|
||||||
|
var booleans =[5]bool{}
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "JavaScript"
|
=== "JavaScript"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user