mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
* Genericise sliceutil.SliceSame * Genericise intslice functions * Genericise stringutil functions
13 lines
258 B
Go
13 lines
258 B
Go
package intslice
|
|
|
|
import "strconv"
|
|
|
|
// IntSliceToStringSlice converts a slice of ints to a slice of strings.
|
|
func IntSliceToStringSlice(ss []int) []string {
|
|
ret := make([]string, len(ss))
|
|
for i, v := range ss {
|
|
ret[i] = strconv.Itoa(v)
|
|
}
|
|
|
|
return ret
|
|
}
|