stringFromAny coerces a map value to string when it is a string, returning "" otherwise.
(v any)
| 224 | |
| 225 | // stringFromAny coerces a map value to string when it is a string, returning "" otherwise. |
| 226 | func stringFromAny(v any) string { |
| 227 | s, _ := v.(string) |
| 228 | return s |
| 229 | } |
| 230 | |
| 231 | // buildConfigError enriches a typed ConfigError with the canonical |
| 232 | // per-subtype recovery hint before returning it, so the wire envelope |
no outgoing calls
no test coverage detected