In my Go code, I want to create an array of custom data types. I'm calling
Blocks=make(*BlockData, len(blocks))
and I get an error:
cannot make type *BlockData
my BlockData class contains field types such as uint64, int64, float32, string, [] byte, [] string and [] * TransactionData. The last one is an array of pointers to another native class.
What should I do to fix this error?
source share