package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(strings.Replace("golang", "g", "1", -1))
}
How to replace all characters in string golang(above string) by * that is it should look like ******
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(strings.Replace("golang", "g", "1", -1))
}
How to replace all characters in string golang(above string) by * that is it should look like ******
برچسب:
نویسنده: استخدام کار