4 ms·
Yes, make versus new is confusing for beginners and I consider them unfortunate. But fortunately they're easy to avoid most of the time. You can initialize loca
by skybrian 14y ago
Yes, make versus new is confusing for beginners and I consider them unfortunate. But fortunately they're easy to avoid most of the time. You can initialize local variables like this:
foo := map[string]string {}
bar := []string {}