You do not need to specify pointers or use a special access operator to access the structure fields in Go.
myRef := &ILikeCompositeLiteralInitilization{} fmt.Println(myRef.Dereferenced);
functionally equivalent to:
fmt.Printn((*myRef).Dereferenced);
It may be worth noting that the behavior for functions is wrong. Sense, I would need to dereference the method that gets the type - this is the value, not the pointer. IE
func (*ILikeCompositeLiteralInitilization) PointerVersion() func (ILikeCompositeLiteralInitilization) ValueVersion() myRef.PointerVersion()
Basically, with functions that do not have an implicit dereference or type operation address, your code will not compile.
evanmcdonnal
source share