stash/pkg/sliceutil/intslice/int_collections.go
DingDongSoLong4 9621213424
Genericise sliceutil functions (#4253)
* Genericise sliceutil.SliceSame
* Genericise intslice functions
* Genericise stringutil functions
2023-11-02 08:58:32 +11:00

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
}