Slicing is useful but is there a difference between simple slice assignment and [:] ? Like this:
A := []int{1, 2, 3} b := A[:] vs. b := A Why would I want to use A[:] if A is a slice? If A is an array I would understand. But it is a slice. I found this in some third party library and got puzzled. -- 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.