Dave, On Saturday, July 8, 2017 at 4:09:32 PM UTC-7, Dave Cheney wrote:
> An array is a vector of values in memory. A slice is a small struct that > describes an array stored elsewhere in memory. I understand the slice vs array difference. But in this statement, intPtr := (*[]byte)(p) my interpretation was intPtr is a pointer to a slice of bytes and slice's underlying array reference is the 4 bytes of the integer, isn't it ? > https://blog.golang.org/go-slices-usage-and-internals > -- 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. For more options, visit https://groups.google.com/d/optout.