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