(str, old, new string)
| 729 | } |
| 730 | |
| 731 | func replace(str, old, new string) (string, error) { |
| 732 | return strings.ReplaceAll(str, old, new), nil |
| 733 | } |
| 734 | |
| 735 | func replaceN(str, old, new string, n int64) (string, error) { |
| 736 | return strings.Replace(str, old, new, int(n)), nil |