5 ms·
In Go, a slice is a reference to a segment of an underlying array.
by carbocation 14y ago
In Go, a slice is a reference to a segment of an underlying array.
- skybrian 14y agoYes, but the reference (along with size information) is passed by value, so no garbage.