mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-23 02:44:52 +01:00
v0.5.0-rc5: check release
This commit is contained in:
11
src/utils/string.go
Normal file
11
src/utils/string.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
func CommaSeperatedList(s string) []string {
|
||||
res := strings.Split(s, ",")
|
||||
for i, part := range res {
|
||||
res[i] = strings.TrimSpace(part)
|
||||
}
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user