MCPcopy
hub / github.com/spf13/cast / ToStringSlice

Function ToStringSlice

zz_generated.go:158–161  ·  view source on GitHub ↗

ToStringSlice casts any value to a(n) []string type.

(i any)

Source from the content-addressed store, hash-verified

156
157// ToStringSlice casts any value to a(n) []string type.
158func ToStringSlice(i any) []string {
159 v, _ := ToStringSliceE(i)
160 return v
161}
162
163// ToIntSlice casts any value to a(n) []int type.
164func ToIntSlice(i any) []int {

Callers 2

BenchmarkCastFunction · 0.92
ToStringMapStringSliceEFunction · 0.85

Calls 1

ToStringSliceEFunction · 0.85

Tested by 1

BenchmarkCastFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…