MCPcopy
hub / github.com/gogf/gf / String

Function String

util/gconv/gconv_basic.go:35–38  ·  view source on GitHub ↗

String converts `any` to string. It's most commonly used converting function.

(anyInput any)

Source from the content-addressed store, hash-verified

33// String converts `any` to string.
34// It's most commonly used converting function.
35func String(anyInput any) string {
36 v, _ := defaultConverter.String(anyInput)
37 return v
38}
39
40// Bool converts `any` to bool.
41// It returns false if `any` is: false, "", 0, "false", "off", "no", empty slice/map.

Callers 15

StringMethod · 0.92
UnmarshalValueMethod · 0.92
FlipMethod · 0.92
Test_KVMap_Concurrent_RWFunction · 0.92
FlipMethod · 0.92

Calls 1

StringMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…