TrimRight returns a slice of the string s, with all trailing Unicode code points contained in cutset removed.
package main import ( "fmt" "strings" ) func main() { fmt.Print(strings.TrimRight("¡¡¡Hello, Gophers!!!", "!¡")) }