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

Function ToString

zz_generated.go:14–17  ·  view source on GitHub ↗

ToString casts any value to a(n) string type.

(i any)

Source from the content-addressed store, hash-verified

12
13// ToString casts any value to a(n) string type.
14func ToString(i any) string {
15 v, _ := ToStringE(i)
16 return v
17}
18
19// ToTime casts any value to a(n) time.Time type.
20func ToTime(i any) time.Time {

Callers 4

BenchmarkCastFunction · 0.92
generateNumberTestCasesFunction · 0.92
ToStringMapStringSliceEFunction · 0.85
toStringMapIntEFunction · 0.85

Calls 1

ToStringEFunction · 0.85

Tested by 2

BenchmarkCastFunction · 0.74
generateNumberTestCasesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…