func ConvertToPortsList(ports string) (*PortsList, error) {

	results := PortsList{}

	p, err := ConvertToSinglePort(ports)
	if err != nil {
		return nil, err
	}

	results = append(results, p)
	return &results, nil

}
// ConvertToPortsList convert a , separated string to a list of port.
ConvertToPortsList convert a , separated string to a list of port.
// ConvertToPortsList convert a separated string to a list of port .
func ConvertToPortsList(ports string) (*PortsList, error) {
	results := PortsList{}
	p, err := ConvertToSinglePort(ports)
	if err != nil {
		return nil, err
	}
	results = append(results, p)
	return &results, nil
}
func ConvertToPortsList ( ports string ) ( * PortsList , error ) { results := PortsList { } p , err := ConvertToSinglePort ( ports ) if err != nil { return nil , err } results = append ( results , p ) return & results , nil }
ConvertToPortsList convert a , separated string to a list of port.
ConvertToPortsList convert a separated string to a list of port .