7 ms·
names = append(names, "Bob") .... that's really it. Will it have the same backing array as it did before you did append? Maybe, maybe not. Should you care? Abs
by NateDad 7y ago
names = append(names, "Bob")
.... that's really it. Will it have the same backing array as it did before you did append? Maybe, maybe not. Should you care? Absolutely not, and if you do, you're probably doing something wrong.
- hundt 7y agoSometimes you need to care! https://play.golang.org/p/goL1JtapY7q https://play.golang.org/p/goL1JtapY7q