You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: method.go
    path of file: ./repos/gomacro/classic
    
    the code of the file until where you have to start completion: /*
 * gomacro - A Go interpreter with Lisp-like macros
 *
 * Copyright (C) 2017-2019 Massimiliano Ghilardi
 *
 *     This Source Code Form is subject to the terms of the Mozilla Public
 *     License, v. 2.0. If a copy of the MPL was not distributed with this
 *     file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 *
 * method.go
 *
 *  Created on: Mar 30, 2017
 *      Author: Massimiliano Ghilardi
 */

package classic

import (
	r "reflect"

	. "github.com
    
func (ir *ThreadGlobals) ObjMethodByName(obj r.Value, name string) r.Value {
	// search for methods known to the compiler
	val := obj.MethodByName(name)
	if val == NilR {
		// search for methods known to the intepreter
		t := obj.Type()
		if method, ok := ir.AllMethods[t][name]; ok {
			// cumbersome... we must create a closure on-the-fly
			val = r.MakeFunc(method.typ, func(args []r.Value) []r.Value {
				return method.val.Call(append([]r.Value{obj}, args...))
			})
		}
	}
	return val
}