func (t *ObjType) Method(name string) (ObjMethod, error) {
	m, ok := t.method[name]
	if !ok {
		return ObjMethod{}, 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 (t *ObjType) Method(name string) (ObjMethod, error) {
	m, ok := t.method[name]
	if !ok {
		return ObjMethod{}, ErrMethodNotFound
	}
	return *m, nil
}
func ( t * ObjType ) Method ( name string ) ( ObjMethod , error ) { m , ok := t . method [ name ] if ! ok { return ObjMethod { } , 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 ) .