package main
import (
"fmt"
)
type user struct{
nama string
address *address
}
type address struct{
address_note string
user user
}
func main() {
ubaid := user{
nama: "ubaidillah",
address: &address{
address_note: "sidoarjo",
},
}
type userNew struct{
nama string
address *address
}
ubaidReform := user{
}
// sidoarjo := address{
// address_note: "Tanggulangin",
// user: user{
// nama: "ubaidillah",
// },
// }
fmt.Println(*ubaid.nama)
}