Allez dans une chaîne, remplacez plusieurs espaces par un seul espace

whitespaces := regexp.MustCompile(`\s+`)
t := whitespaces.ReplaceAllString(s, " ")
Mackerel