Ganti semua kemunculan substring dengan yang lain

import (
    "fmt"
    "strings"
)

func main() {
    value := "The quick brown fox jumps over the lazy dog"
    // Replace the "fox" with a "horse."
    result := strings.Replace(value, "fox", "horse", -1)
    fmt.Println(result)
}
Mackerel