// trimStringFromChar returns the first part of the string before the provided character
// Used to ignore string after hypen, when those are additonal information, e.g. Meeting - Something
trimStringFromChar returns the first part of the string before the provided character
Used to ignore string after hypen, when those are additonal information, e.g. Meeting - Something
// trimStringFromChar returns the first part of the string before the provided character // Used to ignore string after hypen when those are additonal information e . g . Meeting - Something
func trimStringFromChar(s string, char string) string {
	var out string
	if idx := strings.Index(s, char); idx != -1 {
		out = s[:idx]
	} else {
		out = s
	}
	out = strings.TrimSpace(out)
	return out
}
func trimStringFromChar ( s string , char string ) string { var out string if idx := strings . Index ( s , char ) ; idx != - 1 { out = s [ : idx ] } else { out = s } out = strings . TrimSpace ( out ) return out }
trimStringFromChar returns the first part of the string before the provided character
Used to ignore string after hypen, when those are additonal information, e.g.
trimStringFromChar returns the first part of the string before the provided character Used to ignore string after hypen when those are additonal information e . g .