resolve conflicts

Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
huanggze
2019-09-09 17:38:27 +08:00
parent 015caa4023
commit fd28250015
4 changed files with 208 additions and 301 deletions

View File

@@ -14,6 +14,7 @@ limitations under the License.
package stringutils
import (
"strings"
"unicode/utf8"
"github.com/asaskevich/govalidator"
@@ -75,3 +76,10 @@ func Reverse(s string) string {
}
return string(buf)
}
func Split(str string, sep string) []string {
if str == "" {
return nil
}
return strings.Split(str, sep)
}