mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-12 23:29:57 -06:00
* enhancement: add graph beta listPermissions endpoint besides the new api endpoint it includes several utilities to simplify the graph api development. * resolve drive and item id from the request path * generic pointer and value utilities * space root detection * update GetDriveAndItemIDParam signature to return a error * move errorcode package * enhancement: add generic error code handling * fix: rebase
17 lines
356 B
Go
17 lines
356 B
Go
package conversions
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// StringToSliceString splits a string into a slice string according to separator
|
|
func StringToSliceString(src string, sep string) []string {
|
|
parsed := strings.Split(src, sep)
|
|
parts := make([]string, 0, len(parsed))
|
|
for _, v := range parsed {
|
|
parts = append(parts, strings.TrimSpace(v))
|
|
}
|
|
|
|
return parts
|
|
}
|