Add strings.Join function

This commit is contained in:
adnano 2021-05-10 13:21:43 -04:00
parent 4272b2261f
commit 62c0d1f778

View file

@ -122,6 +122,7 @@ type _strings struct{}
func (_strings) Count(a, b string) int { return strings.Count(a, b) } func (_strings) Count(a, b string) int { return strings.Count(a, b) }
func (_strings) HasPrefix(a, b string) bool { return strings.HasPrefix(a, b) } func (_strings) HasPrefix(a, b string) bool { return strings.HasPrefix(a, b) }
func (_strings) HasSuffix(a, b string) bool { return strings.HasSuffix(a, b) } func (_strings) HasSuffix(a, b string) bool { return strings.HasSuffix(a, b) }
func (_strings) Join(elems []string, s string) string { return strings.Join(elems, s) }
func (_strings) Repeat(s string, i int) string { return strings.Repeat(s, i) } func (_strings) Repeat(s string, i int) string { return strings.Repeat(s, i) }
func (_strings) Replace(a, b, c string, n int) string { return strings.Replace(a, b, c, n) } func (_strings) Replace(a, b, c string, n int) string { return strings.Replace(a, b, c, n) }
func (_strings) ReplaceAll(a, b, c string) string { return strings.ReplaceAll(a, b, c) } func (_strings) ReplaceAll(a, b, c string) string { return strings.ReplaceAll(a, b, c) }