mirror of
https://github.com/krahets/hello-algo.git
synced 2025-02-02 22:43:50 +08:00
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 title=""
|
||||
|
||||
var numbers =[5]int{}
|
||||
var decimals =[5]float64{}
|
||||
// go 里没有char ,但有 rune/byte 代替 char
|
||||
var characters =[5]byte{}
|
||||
var booleans =[5]bool{}
|
||||
```
|
||||
|
||||
=== "JavaScript"
|
||||
|
Loading…
Reference in New Issue
Block a user