Skip to content
Snippets Groups Projects
Commit 55321277 authored by Anna Morpurgo's avatar Anna Morpurgo
Browse files

commentato es slice

parent 9442d5d1
Branches
No related tags found
No related merge requests found
......@@ -250,10 +250,10 @@ nomeSlice := []type{} // tra {} ci può essere una lista di valori
esempi:
```go
mySlice := make([]int, 4, 5)
mySlice := make([]int, 4)
mySlice := []int{}
mySlice := []int{1, 2, 3, 4}
mySlice := make([]int, 4, 5) //len 4, cap 5
mySlice := make([]int, 4) //len 4, cap 4
mySlice := []int{} //len 0, cap 0
mySlice := []int{1, 2, 3, 4} //len 4, cap 4
```
#### Stampa di una slice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment