3 ms·
Slice values are normally copied so it's not an issue. The slice would need to be stored in a global or a struct's field and then changed while some other gorou
by skybrian 7y ago
Slice values are normally copied so it's not an issue. The slice would need to be stored in a global or a struct's field and then changed while some other goroutine is reading it.
(I haven't seen this happen, though.)