mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
Update data_and_memory.md
add code for go
This commit is contained in:
@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user