📅  最后修改于: 2022-03-11 14:45:01.897000             🧑  作者: Mango
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)
}