pointer
is a pre-defined type name. It is the type used to represent an untyped pointer. So zv
is a pointer to a pointer. And the pre-defined type pointer
is not a record and therefore cannot be used with the member access operator .
.
Solve the problem by choosing a different name for your record type.