Runix
2015-06-03 17:23:30 UTC
Hi, why in the first slice get the error, the second is not?
var a = ([...]interface{}{})[:]
fmt.Println(a)
var b = [...]interface{}{}
fmt.Println(b[:])
http://play.golang.org/p/uxJjvNLGI5
var a = ([...]interface{}{})[:]
fmt.Println(a)
var b = [...]interface{}{}
fmt.Println(b[:])
http://play.golang.org/p/uxJjvNLGI5
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.