hprose / hprose-golang

Hprose is a cross-language RPC. This project is Hprose for Golang.
MIT License
1.26k stars 205 forks source link

当远程调用函数的参数类型为interface{},客户端传入uint8或者uint32, 在远端通过reflect.TypeOf()得到的类型都是int,有什么方式使得远端得到的类型是uint8或是uint32么? #70

Closed savensjtu closed 6 years ago

andot commented 6 years ago

你定义为具体的类型,就可以得到具体的类型,否则整数就只有 int 和 big.Int 两种。

savensjtu commented 6 years ago

好的,谢了!后面看了下hprose的序列化,明白了!