gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/SplitTrimmedNonEmptyAll.go (about) 1 package stringslice 2 3 import ( 4 "strings" 5 ) 6 7 func SplitTrimmedNonEmptyAll( 8 content, 9 splitter string, 10 ) []string { 11 items := strings.Split( 12 content, 13 splitter) 14 15 if len(items) == 0 { 16 return []string{} 17 } 18 19 return NonWhitespaceTrimSlice(items) 20 }