我已经尝试了所有我能想到的方法,在 Go 中将类型
*int32
*int64
https://go.dev/play/p/W2X0HEnn79q
请有人帮忙。
您无法将
您可以将
int64
x:=int32(1) // x is int32 xPtr:=&x // xPtr is *int32 y:=int64(*xPtr) // y is int64 yPtr:=&y // yPtr is *int64