Files
headfirstgo/chapter2/strings/strings.go
Archie Fox 2e7b8722ca Init commit
2025-01-30 12:04:39 +03:00

14 lines
181 B
Go

package main
import (
"fmt"
"strings"
)
func main() {
broken := "G# r#cks!"
replacer := strings.NewReplacer("#", "o")
fixed := replacer.Replace(broken)
fmt.Println(fixed)
}