Posted in

Go取值解引用*操作的5个致命风险:空指针、竞态、生命周期越界、unsafe.Pointer转换失效……现在修复还来得及!

第一章:Go语言取地址与取值操作 … Go取值解引用*操作的5个致命风险:空指针、竞态、生命周期越界、unsafe.Pointer转换失效……现在修复还来得及!Read more

Posted in

从unsafe.Pointer到unsafe.Slice:极客向——用Go 1.21 unsafe包绕过interface{}间接层,直接读取map[string]interface{}值的底层type信息

第一章:go怎么判断map[st … 从unsafe.Pointer到unsafe.Slice:极客向——用Go 1.21 unsafe包绕过interface{}间接层,直接读取map[string]interface{}值的底层type信息Read more