func formatDate(date string) string {
	d := strings.Split(date, " ")
	if len(d) == 1 {
		return ""
	}
	var dateS []string
	for i := 0; i < len(d); i++ {
		if contains(dateS, getMonth(d[i])) {
			continue
		}
		dateS = append(dateS, getMonth(d[i]))
	}
	return strings.Join(dateS, " to ")
}
// utility func to format dates
//
// This function parses date strings that have been turned into
// month names and appends the month with 'to'
utility func to format dates

This function parses date strings that have been turned into
month names and appends the month with 'to'
// utility func to format dates // // This function parses date strings that have been turned into // month names and appends the month with ' to '
func formatDate(date string) string {
	d := strings.Split(date, " ")
	if len(d) == 1 {
		return ""
	}
	var dateS []string
	for i := 0; i < len(d); i++ {
		if contains(dateS, getMonth(d[i])) {
			continue
		}
		dateS = append(dateS, getMonth(d[i]))
	}
	return strings.Join(dateS, " to ")
}
func formatDate ( date string ) string { d := strings . Split ( date , " " ) if len ( d ) == 1 { return " " } var dateS [ ] string for i := 0 ; i < len ( d ) ; i ++ { if contains ( dateS , getMonth ( d [ i ] ) ) { continue } dateS = append ( dateS , getMonth ( d [ i ] ) ) } return strings . Join ( dateS , " " ) }
utility func to format dates
utility func to format dates