lbry.go/extras/util/strings.go
2020-09-01 14:36:59 -04:00

12 lines
281 B
Go

package util
import "strings"
func StringSplitArg(stringToSplit, separator string) []interface{} {
split := strings.Split(stringToSplit, separator)
splitInterface := make([]interface{}, len(split))
for i, s := range split {
splitInterface[i] = s
}
return splitInterface
}