Two cases in particular:
First: big.Int
regardless of the number stored, unsafe.Sizeof returns 16. It obviously doesn't count the data that represents the number, just a pointer or reference to it. Is there a call I can make to account for all the memory being used by the big.Int?
Second: linked list
If I have a struct which includes pointers to things which have pointers and so on. Obviously unsafe.Sizeof only returns the size of the member pointer, not the things it points to and certainly not recursively.
Are there easy ways of accessing how much memory such things are using in total?