code: func (a *ArgType) BuildIndexFuncName(ixTpl *Index) {
  	// build func name
  	funcName := ixTpl.Type.Name
  	if !ixTpl.Index.IsUnique {
  		funcName = inflector.Pluralize(ixTpl.Type.Name)
  	}
  	funcName = funcName + "By"
  
  	// add param names
  	paramNames := []string{}
  
  	ixName := fmtIndexName(ixTpl.Index.IndexName, ixTpl.Type.Table.TableName)
  	if a.UseIndexNames && ixName != "" {
  		paramNames = append(paramNames, ixName)
  	} else {
  		for _, f := range ixTpl.Fields {
  			paramNames = append(paramNames, f.Name)
  		}
  	}
  
  	// store resulting name back
  	ixTpl.FuncName = funcName + strings.Join(paramNames, "")
  }
docs: // BuildIndexFuncName builds the index func name for an index and its supplied
  // fields.