All: I saw this example at https://play.golang.org/ in cgo. I don't understand the role of the 1st :8? I tried changing it to 0 and didn't make any difference? I will appreciate any pointers.
package main > > >> import ( > > "fmt" > > "unsafe" > > ) > > >> func main() { > > var i uint64 = 0xdeedbeef01020304 > > slice := (*[1 << 30]byte)(unsafe.Pointer(&i))[:8:8] > > fmt.Println(slice) > > } > > With regards, -- 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.