package main
import (
"fmt"
)
type Point struct{
x uint32
y uint32
}
func changeX(poi *Point){
fmt.Printf("MEM 2=> %p \n", poi)
poi.x = 200
}
func main() {
// ================= Basic Reference
// coba1 := 2
// coba2 := &coba1
// Change the value of reference
// *coba2 = 3
// fmt.Println(coba1)
// fmt.Println(*coba2)
// ================== RSCH 2
// var p1 Point = Point{x:1,y:2}
// p1.x = 7
// fmt.Println(p1)
// ================== RSCH 3
coba3 := Point{y:3}
fmt.Printf("MEM 1=> %p \n", &coba3)
fmt.Println(coba3)
changeX(&coba3)
fmt.Println(coba3)
}