1 package main 2 3 func main() { 4 items := getItems() 5 for i, it := range items { 6 println(i, it.name) 7 } 8 } 9