advanced-go-programming-book
advanced-go-programming-book copied to clipboard
ch3.8 勘误
func GetGoid() int64 {
g := getg()
gid := reflect.ValueOf(g).FieldByName("goid").Int()
return goid
}
return goid
=> return gid
Go1.10(?)之后runtime·convT2E
已经不能从外部包调用,用以下函数替代:
//go:nosplit
func runtime_convT2E_hack(_type, elem uintptr) eface {
return eface{
_type: _type,
elem: elem,
}
}
Go1.10(?)之后
runtime·convT2E
已经不能从外部包调用,用以下函数替代://go:nosplit func runtime_convT2E_hack(_type, elem uintptr) eface { return eface{ _type: _type, elem: elem, } }
你好,runtime_convT2E_hack这个函数定义在什么地方(eface是不可导出类型)
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。