From 19300e92a3d2cb99a80c98294c3f39f0df6d1703 Mon Sep 17 00:00:00 2001 From: tsotsi Date: Thu, 4 Jan 2018 01:07:29 +0800 Subject: [PATCH] fix --- container.go | 3 --- example/main.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/container.go b/container.go index 64ee748..507d7a4 100644 --- a/container.go +++ b/container.go @@ -82,9 +82,6 @@ func (c Container) Get(key interface{}) (value interface{}, ok bool) { case ITEM_TYPE_FACTORY: vv := reflect.ValueOf(v.Raw) args := []reflect.Value{reflect.ValueOf(&c)} - //if v.rawInfo[0] > 0 { - // args = append(args, reflect.ValueOf(&c)) - //} resv := vv.Call(args) v.Value = resv[0].Interface() value = v.Value diff --git a/example/main.go b/example/main.go index 0c7c9ca..b5c9565 100644 --- a/example/main.go +++ b/example/main.go @@ -2,7 +2,7 @@ package main import ( "reflect" - "go-container" + "go_container" "fmt" )