code: func (tl TypeLoader) LoadIndexes(args *ArgType, tableMap map[string]*Type) (map[string]*Index, error) {
  	var err error
  
  	ixMap := map[string]*Index{}
  	for _, t := range tableMap {
  		// load table indexes
  		err = tl.LoadTableIndexes(args, t, ixMap)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	// generate templates
  	for _, ix := range ixMap {
  		err = args.ExecuteTemplate(IndexTemplate, ix.Type.Name, ix.Index.IndexName, ix)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	return ixMap, nil
  }
docs: // LoadIndexes loads schema index definitions.