On Monday, 25 October 2021 at 22:48:50 UTC+1 Ian Lance Taylor wrote:

> unsafe.Sizeof is in unsafe mainly for 
> historical reasons and because there wasn't anywhere else natural to 
> put it. 
>

If you *need* to know the size-in-bytes of any Go internal data structure, 
then you are almost certainly doing something unsafe :-) 

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f277b652-f710-407e-a468-4d83b7518000n%40googlegroups.com.

Reply via email to