mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
back to number casting
This commit is contained in:
parent
d02667d1e5
commit
6278b6d3a4
6
go.go
6
go.go
@ -289,9 +289,9 @@ func renderTSRPCServiceProxies(services map[string]*Service, fullPackageName str
|
||||
|
||||
args = append(args, arg.Value.emptyLiteral(aliases))
|
||||
switch arg.Value.GoScalarType {
|
||||
// case "int", "int8", "int16", "int32", "int64",
|
||||
// "uint", "uint8", "uint16", "uint32", "uint64":
|
||||
// callArgs = append(callArgs, fmt.Sprint(arg.Value.GoScalarType+"(args[", skipArgI, "].(float64))"))
|
||||
case "int", "int8", "int16", "int32", "int64",
|
||||
"uint", "uint8", "uint16", "uint32", "uint64":
|
||||
callArgs = append(callArgs, fmt.Sprint(arg.Value.GoScalarType+"(args[", skipArgI, "].(float64))"))
|
||||
default:
|
||||
// assert
|
||||
callArgs = append(callArgs, fmt.Sprint("args[", skipArgI, "].("+arg.Value.goType(aliases, fullPackageName)+")"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user