This commit is contained in:
veypi
2025-11-16 16:00:27 +08:00
parent 4400e24dca
commit 6b8a293ff8
8 changed files with 73 additions and 7 deletions
+13
View File
@@ -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)
```