func TrimSuffix(s, suffix string) string
package main
import (
"fmt"
"strings"
)
func main() {
var s = "@@@Hello, Gophers!!!"
s = strings.TrimSuffix(s, ", Gophers!!!")
s = strings.TrimSuffix(s, ", Marmots!!!")
fmt.Print(s)
}
// Output:
// @@@Hello