func (r *Type) Method(name string) (RootMethod, error) {
	m, ok := r.method[name]
	if !ok {
		return RootMethod{}, ErrMethodNotFound
	}
	return *m, nil
}
// Method returns information on the method with the given name,
// or the zero Method and ErrMethodNotFound if there is no such method
// (the only possible error).
Method returns information on the method with the given name,
or the zero Method and ErrMethodNotFound if there is no such method
(the only possible error).
// Method returns information on the method with the given name // or the zero Method and ErrMethodNotFound if there is no such method // ( the only possible error ) .
func (r *Type) Method(name string) (RootMethod, error) {
	m, ok := r.method[name]
	if !ok {
		return RootMethod{}, ErrMethodNotFound
	}
	return *m, nil
}
func ( r * Type ) Method ( name string ) ( RootMethod , error ) { m , ok := r . method [ name ] if ! ok { return RootMethod { } , ErrMethodNotFound } return * m , nil }
Method returns information on the method with the given name,
or the zero Method and ErrMethodNotFound if there is no such method
(the only possible error).
Method returns information on the method with the given name or the zero Method and ErrMethodNotFound if there is no such method ( the only possible error ) .