package main import "fmt" type dummy struct { name string } func main() { fmt.Println("vim-go") dummies := []dummy{ dummy{"foo"}, dummy{"bar"}, dummy{"baz"}, } for i, _ := range dummies { dum := &dummies[i] dum.name = "hello" } for _, dum := range dummies { fmt.Println(dum.name) } }