type Person struct { Name string}
func NewPerson(name string) *Person { return &Person{Name: name}}
func main() { m := make(map[int]*Person)
for i := 0; i < 1000000000; i++ { m[i] = NewPerson("Person" + strconv.Itoa(i)) }
for index := 0; index < 10000; index++ { m[index] = nil delete(m, index) }}
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-j