mirror of
https://github.com/wahyd4/knowledge.git
synced 2026-08-09 05:06:28 +10:00
Update go.md
This commit is contained in:
+2
-1
@@ -27,11 +27,12 @@ new(T) -> *T
|
||||
Array has a exactly length, can't be modified.
|
||||
## slice
|
||||
|
||||
- Auto increment length
|
||||
1. Auto increment length
|
||||
```go
|
||||
new([]int)
|
||||
make([]int, 2, 5)
|
||||
```
|
||||
2. nil is a valid slice which length is `0`
|
||||
|
||||
## Go routine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user