diff options
Diffstat (limited to 'stringfunc.go')
| -rw-r--r-- | stringfunc.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stringfunc.go b/stringfunc.go new file mode 100644 index 00000000..ff51b80a --- /dev/null +++ b/stringfunc.go @@ -0,0 +1,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) +} |
