lbry.go/extras/util/strings.go

13 lines
281 B
Go
Raw Normal View History

2020-09-01 20:36:59 +02:00
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
}