code: func (m *MediaTypeDefinition) IterateViews(it ViewIterator) error {
  	o := m.Views
  	// gather names and sort them
  	names := make([]string, len(o))
  	i := 0
  	for n := range o {
  		names[i] = n
  		i++
  	}
  	sort.Strings(names)
  	// iterate
  	for _, n := range names {
  		if err := it(o[n]); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // IterateViews calls the given iterator passing in each attribute sorted in alphabetical order.
  // Iteration stops if an iterator returns an error and in this case IterateViews returns that
  // error.