You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
481 B
18 lines
481 B
package modules
|
|
|
|
import (
|
|
"yunyan/comm"
|
|
"yunyan/pb"
|
|
"reflect"
|
|
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
var (
|
|
typeOfSession = reflect.TypeOf((*comm.IUserSession)(nil)).Elem()
|
|
typeOfMessage = reflect.TypeOf((*proto.Message)(nil)).Elem()
|
|
typeOfByteSlice = reflect.TypeOf([]byte{}) // []byte 类型
|
|
typeOfErrorCode = reflect.TypeOf((*pb.ErrorCode)(nil)).Elem()
|
|
typeOfErrorData = reflect.TypeOf((*pb.ErrorData)(nil))
|
|
typeOfError = reflect.TypeOf((*error)(nil)).Elem()
|
|
)
|
|
|