(argType reflect.Type, jsonArg any)
| 87 | } |
| 88 | |
| 89 | func convertComplex(argType reflect.Type, jsonArg any) (any, error) { |
| 90 | nativeArgVal := reflect.New(argType) |
| 91 | err := utilfn.DoMapStructure(nativeArgVal.Interface(), jsonArg) |
| 92 | if err != nil { |
| 93 | return nil, err |
| 94 | } |
| 95 | return nativeArgVal.Elem().Interface(), nil |
| 96 | } |
| 97 | |
| 98 | func isSpecialWaveArgType(argType reflect.Type) bool { |
| 99 | return argType == waveObjRType || argType == waveObjSliceRType || argType == waveObjMapRType || argType == wsCommandRType |
no test coverage detected