func TrimSuffixWhile(s string, suffix string) (trimmed string) {
	trimmed = s
	if suffix != "" {
		for strings.HasSuffix(trimmed, suffix) {
			trimmed = strings.TrimSuffix(trimmed, suffix)
		}
	}
	return
}
// TrimSuffixWhile repeatedly trims a suffix from a string
TrimSuffixWhile repeatedly trims a suffix from a string
// TrimSuffixWhile repeatedly trims a suffix from a string
func TrimSuffixWhile(s string, suffix string) (trimmed string) {
	trimmed = s
	if suffix != "" {
		for strings.HasSuffix(trimmed, suffix) {
			trimmed = strings.TrimSuffix(trimmed, suffix)
		}
	}
	return
}
func TrimSuffixWhile ( s string , suffix string ) ( trimmed string ) { trimmed = s if suffix != " " { for strings . HasSuffix ( trimmed , suffix ) { trimmed = strings . TrimSuffix ( trimmed , suffix ) } } return }
TrimSuffixWhile repeatedly trims a suffix from a string
TrimSuffixWhile repeatedly trims a suffix from a string