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