overdue
This commit is contained in:
10
.rclone_repo/vendor/github.com/pengsrc/go-shared/convert/string.go
generated
vendored
Executable file
10
.rclone_repo/vendor/github.com/pengsrc/go-shared/convert/string.go
generated
vendored
Executable 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