4 ms·
This is not an edge case. effective go[0] clearly states "Slices hold references to an underlying array, and if you assign one slice to another, both refer to
by aksx 11y ago
This is not an edge case.
effective go[0] clearly states
"Slices hold references to an underlying array, and if you assign one slice to another, both refer to the same array."
[0] https://golang.org/doc/effective_go.html#slices https://golang.org/doc/effective_go.html#slices