func SplitTrimLinesNoEmpty(output string) []string {
	// this should work for windows as well as \r will be trimmed
	split := strings.Split(output, "\n")
	lines := make([]string, 0, len(split))
	for _, line := range split {
		line = strings.TrimSpace(line)
		if line != "" {
			lines = append(lines, line)
		}
	}
	return lines
}
// SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line.
//
// This removes any empty lines.
SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line.

This removes any empty lines.
// SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line . // // This removes any empty lines .
func SplitTrimLinesNoEmpty(output string) []string {
	split := strings.Split(output, "\n")
	lines := make([]string, 0, len(split))
	for _, line := range split {
		line = strings.TrimSpace(line)
		if line != "" {
			lines = append(lines, line)
		}
	}
	return lines
}
func SplitTrimLinesNoEmpty ( output string ) [ ] string { split := strings . Split ( output , " \n " ) lines := make ( [ ] string , 0 , len ( split ) ) for _ , line := range split { line = strings . TrimSpace ( line ) if line != " " { lines = append ( lines , line ) } } return lines }
SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line.
SplitTrimLinesNoEmpty splits the output into individual lines and trims the spaces from each line .
// this should work for windows as well as \r will be trimmed