update
This commit is contained in:
@@ -4,3 +4,16 @@
|
||||
# 退出gocode 服务
|
||||
gocode exit
|
||||
```
|
||||
|
||||
## error
|
||||
|
||||
slice append 会引用到原slice
|
||||
|
||||
```golang
|
||||
a := make([]any, 0, 20)
|
||||
a = append(a, 1, 2, 3)
|
||||
b := append(a, 4)
|
||||
c := append(a, 5)
|
||||
b[0] = 0
|
||||
logv.Warn().Msgf("%v %v %v", a, b, c)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user