// checkType validates the callType matches the respType
checkType validates the callType matches the respType
// checkType validates the callType matches the respType
func checkType(callType string, respType int32, types map[int32]string) error {
	name, ok := types[respType]
	if !ok {
		return ErrInvalidCallType{Value: respType}
	}
	if name != callType {
		return ErrInvalidCallType{Name: name, Value: respType}
	}
	return nil
}
func checkType ( callType string , respType int32 , types map [ int32 ] string ) error { name , ok := types [ respType ] if ! ok { return ErrInvalidCallType { Value : respType } } if name != callType { return ErrInvalidCallType { Name : name , Value : respType } } return nil }
checkType validates the callType matches the respType
checkType validates the callType matches the respType