// ":=" copies the address of the object into b
// 'a' is the address of an object
// '*a' is the object itself
// &*a or &(*a) is the address of the object located at the
address 'a', which is the same as 'a'
aCopy := *a // 'aCopy' is of type Foo, and '*a' too.
// ":=' copies the object '*a' into 'aCopy'. That's here that
the copy occurs.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.