func (v Value) FindMethod(rootMethodName string, version int, objMethodName string) (MethodCaller, error) {
	if !v.IsValid() {
		panic("FindMethod called on invalid Value")
	}
	caller := methodCaller{
		rootValue: v.rootValue,
	}
	var err error
	caller.rootMethod, err = v.rootType.Method(rootMethodName)
	if err != nil {
		return nil, &CallNotImplementedError{
			RootMethod: rootMethodName,
		}
	}
	caller.objMethod, err = caller.rootMethod.ObjType.Method(objMethodName)
	if err != nil {
		return nil, &CallNotImplementedError{
			RootMethod: rootMethodName,
			Method:     objMethodName,
		}
	}
	return caller, nil
}
// FindMethod returns an object that can be used to make calls on
// the given root value to the given root method and object method.
// It returns an error if either the root method or the object
// method were not found.
// It panics if called on the zero Value.
// The version argument is ignored - all versions will find
// the same method.
FindMethod returns an object that can be used to make calls on
the given root value to the given root method and object method.
It returns an error if either the root method or the object
method were not found.
It panics if called on the zero Value.
The version argument is ignored - all versions will find
the same method.
// FindMethod returns an object that can be used to make calls on // the given root value to the given root method and object method . // It returns an error if either the root method or the object // method were not found . // It panics if called on the zero Value . // The version argument is ignored - all versions will find // the same method .
func (v Value) FindMethod(rootMethodName string, version int, objMethodName string) (MethodCaller, error) {
	if !v.IsValid() {
		panic("FindMethod called on invalid Value")
	}
	caller := methodCaller{
		rootValue: v.rootValue,
	}
	var err error
	caller.rootMethod, err = v.rootType.Method(rootMethodName)
	if err != nil {
		return nil, &CallNotImplementedError{
			RootMethod: rootMethodName,
		}
	}
	caller.objMethod, err = caller.rootMethod.ObjType.Method(objMethodName)
	if err != nil {
		return nil, &CallNotImplementedError{
			RootMethod: rootMethodName,
			Method:     objMethodName,
		}
	}
	return caller, nil
}
func ( v Value ) FindMethod ( rootMethodName string , version int , objMethodName string ) ( MethodCaller , error ) { if ! v . IsValid ( ) { panic ( " " ) } caller := methodCaller { rootValue : v . rootValue , } var err error caller . rootMethod , err = v . rootType . Method ( rootMethodName ) if err != nil { return nil , & CallNotImplementedError { RootMethod : rootMethodName , } } caller . objMethod , err = caller . rootMethod . ObjType . Method ( objMethodName ) if err != nil { return nil , & CallNotImplementedError { RootMethod : rootMethodName , Method : objMethodName , } } return caller , nil }
FindMethod returns an object that can be used to make calls on
the given root value to the given root method and object method.
FindMethod returns an object that can be used to make calls on the given root value to the given root method and object method .