(value any)
| 333 | } |
| 334 | |
| 335 | func normalizeString(value any) (string, error) { |
| 336 | switch current := value.(type) { |
| 337 | case string: |
| 338 | return current, nil |
| 339 | case []byte: |
| 340 | return string(current), nil |
| 341 | default: |
| 342 | return "", fmt.Errorf("unsupported string result type %T", value) |
| 343 | } |
| 344 | } |
no outgoing calls
no test coverage detected