code: func indexCol2Col(cols []*Column, col *model.IndexColumn) *Column {
  	for _, c := range cols {
  		if c.ColName.L == col.Name.L {
  			return c
  		}
  	}
  	return nil
  }
docs: // indexCol2Col finds the corresponding column of the IndexColumn in a column slice.