mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 12:21:18 +08:00
13 lines
189 B
Go
13 lines
189 B
Go
|
package util
|
||
|
|
||
|
func TrimStringSlice(list []string) []string {
|
||
|
var out []string
|
||
|
for _, item := range list {
|
||
|
if len(item) == 0 {
|
||
|
continue
|
||
|
}
|
||
|
out = append(out, item)
|
||
|
}
|
||
|
return out
|
||
|
}
|