mirror of
https://github.com/rclone/rclone.git
synced 2025-12-18 17:23:20 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
10
vendor/github.com/pengsrc/go-shared/convert/string.go
generated
vendored
Normal file
10
vendor/github.com/pengsrc/go-shared/convert/string.go
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package convert
|
||||
|
||||
// StringSliceWithConverter converts a list of string using the passed converter function
|
||||
func StringSliceWithConverter(s []string, c func(string) string) []string {
|
||||
out := []string{}
|
||||
for _, i := range s {
|
||||
out = append(out, c(i))
|
||||
}
|
||||
return out
|
||||
}
|
||||
Reference in New Issue
Block a user