1 2 3 4 5 6 7 8 9 10
package main import "strings" // stringFunc - string manipulation function wrappers type stringFunc struct{} func (t stringFunc) replaceAll(old, new, s string) string { return strings.Replace(s, old, new, -1) }