可以指向 var 變數 的記憶體位置,或指到 struct 物件 本身基本上用法跟C語言大同小異. & 取變數的位址 ... func main() { x := 1 p := &x //p(type: *int)指向x fmt.
確定! 回上一頁