code: func GetAllRemotes(tx *sql.Tx) ([]*Remote, error) {
  	var remotes []*Remote
  	query := "SELECT * from remote"
  
  	rows, err := tx.Query(query)
  	if err != nil {
  		return nil, err
  
  	}
  	defer rows.Close()
  
  	for rows.Next() {
  		r := &Remote{}
  		if err := remoteRowScan(rows, r); err != nil {
  			return nil, err
  
  		}
  
  		remotes = append(remotes, r)
  
  	}
  
  	if err := rows.Err(); err != nil {
  		return nil, err
  
  	}
  
  	return remotes, nil
  
  }
docs: // GetAllRemotes returns all the ACIInfos sorted by optional sortfields and
  // with ascending or descending order.