method_exists

method_exists

[code]

func MethodExists(obj interface{}, method string) bool {
	valueOf := reflect.ValueOf(obj)
	methodVal := valueOf.MethodByName(method)
	return methodVal.IsValid()
}

[/code]