golang for loop array of structs code example Example: iterate over struct slice golang for i, x := range p.Fruits