type ShopId int32
var _shop_id *ShopId
_shop_id = &ShopId(1000)
无法这样写,一定要分开写。
type ShopId int32
var _shop_id *ShopId
___shop_id := ShopId(1000)
_shop_id = &___shop_id
为什么啊?
ShopId(1000) 不可寻址,详见 Go 语言规范。
http://docs.studygolang.com/ref/spec#Address_operators
#1