func ObjTypeOf(objType reflect.Type) *ObjType {
	if objType == nil {
		return nil
	}
	objTypeMutex.RLock()
	methods := objTypesByGoType[objType]
	objTypeMutex.RUnlock()
	if methods != nil {
		return methods
	}
	objTypeMutex.Lock()
	defer objTypeMutex.Unlock()
	methods = objTypesByGoType[objType]
	if methods != nil {
		return methods
	}
	methods = objTypeOf(objType)
	objTypesByGoType[objType] = methods
	return methods
}
// ObjTypeOf returns information on all RPC methods
// implemented by an object of the given Go type,
// as returned from a root-level method.
// If objType is nil, it returns nil.
ObjTypeOf returns information on all RPC methods
implemented by an object of the given Go type,
as returned from a root-level method.
If objType is nil, it returns nil.
// ObjTypeOf returns information on all RPC methods // implemented by an object of the given Go type // as returned from a root - level method . // If objType is nil it returns nil .
func ObjTypeOf(objType reflect.Type) *ObjType {
	if objType == nil {
		return nil
	}
	objTypeMutex.RLock()
	methods := objTypesByGoType[objType]
	objTypeMutex.RUnlock()
	if methods != nil {
		return methods
	}
	objTypeMutex.Lock()
	defer objTypeMutex.Unlock()
	methods = objTypesByGoType[objType]
	if methods != nil {
		return methods
	}
	methods = objTypeOf(objType)
	objTypesByGoType[objType] = methods
	return methods
}
func ObjTypeOf ( objType reflect . Type ) * ObjType { if objType == nil { return nil } objTypeMutex . RLock ( ) methods := objTypesByGoType [ objType ] objTypeMutex . RUnlock ( ) if methods != nil { return methods } objTypeMutex . Lock ( ) defer objTypeMutex . Unlock ( ) methods = objTypesByGoType [ objType ] if methods != nil { return methods } methods = objTypeOf ( objType ) objTypesByGoType [ objType ] = methods return methods }
ObjTypeOf returns information on all RPC methods
implemented by an object of the given Go type,
as returned from a root-level method.
ObjTypeOf returns information on all RPC methods implemented by an object of the given Go type as returned from a root - level method .