From 62c0d1f7782553aee4ee0d7d2631765e77760853 Mon Sep 17 00:00:00 2001 From: adnano Date: Mon, 10 May 2021 13:21:43 -0400 Subject: [PATCH] Add strings.Join function --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index 65edfaf..f8d5367 100644 --- a/config.go +++ b/config.go @@ -122,6 +122,7 @@ type _strings struct{} 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) 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) 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) }