12 lines
281 B
Go
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
|
|
}
|