[go-nuts] Re: Slice capacity changes

2017-08-08 Thread 18635789436zhjk
I run the code and the two methods output the same results, all 8 在 2017年8月9日星期三 UTC+8上午8:57:07,sno写道: > > Hello, > > I was wondering if someone could help me understand what is going on in > the following piece of code. > > package main > > import ( > "fmt" > "reflect" > "unsafe" > ) > > func ma

[go-nuts] Re: Slice capacity changes

2017-08-08 Thread sno
Example at: https://play.golang.org/p/d7HBrbZGo4 -- 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