zhouenxian's recent timeline updates
zhouenxian

zhouenxian

V2EX member #411368, joined on 2019-05-11 17:40:31 +08:00
Per zhouenxian's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
zhouenxian's recent replies
Dec 14, 2023
Replied to a topic by zapll 推广 ChatGPT Plus 拼车宝发布两周, 会员接着送
unRijcbtZkQsAAQnz8CLpw ,感谢
Nov 8, 2020
Replied to a topic by an93 问与答 golang 求助大佬
函数传参数确实是值传递,但 slice 传递的值中包含了内容的地址,所以还是把地址传了进去。
如下为切片类型的内部定义。
type _slice struct {
elements unsafe.Pointer // 引用着底层存储在间接部分上的元素
len int // 长度
cap int // 容量
}
引用:go 101,https://gfw.go101.org/article/container.html
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2637 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
♥ Do have faith in what you're doing.