String converts `any` to string. It's most commonly used converting function.
(anyInput any)
| 33 | // String converts `any` to string. |
| 34 | // It's most commonly used converting function. |
| 35 | func 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. |
searching dependent graphs…