func ReplaceAll(s, old, new string) string
package main import ( "fmt" "strings" ) func main() { fmt.Println(strings.ReplaceAll("oink oink oink", "oink", "moo")) } // Output: // moo moo moo