(extPropValue any)
| 36 | ) |
| 37 | |
| 38 | func extString(extPropValue any) (string, error) { |
| 39 | str, ok := extPropValue.(string) |
| 40 | if !ok { |
| 41 | return "", fmt.Errorf("failed to convert type: %T", extPropValue) |
| 42 | } |
| 43 | return str, nil |
| 44 | } |
| 45 | |
| 46 | func extTypeName(extPropValue any) (string, error) { |
| 47 | return extString(extPropValue) |
no outgoing calls
no test coverage detected