Hi

I have a slice that is casted from an interface and even if the capacity of 
the slice is not exceeded the len and the data isn't keep. 
Can somebody explain me why? 

The pointer of the interface and the casted slice is the same and isn't 
changing.

To make this scenario work i had to use pointers, but from documentation i 
understand that the first scenario should work.

The problem:
https://play.golang.org/p/tLZ40dS9_A

The working one:
https://play.golang.org/p/QQ-AeWVcRl


Thanks

-- 
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.

Reply via email to