Skip to content

Commit

Permalink
add ignore inferface inject
Browse files Browse the repository at this point in the history
  • Loading branch information
junqiang.zhang committed May 15, 2022
1 parent c9f0270 commit ea77107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exmaple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (d *DD) Add(a, b int) int { //注意:当有多个实现时,存在不确

func init() {

gdi.IgnoreInterfaceInject(false)
//gdi.Register(&CC{
// Name: "jq",
//})
Expand Down
2 changes: 1 addition & 1 deletion gdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewGDIPool() *GDIPool {
return &GDIPool{
debug: true,
autoCreate: true,
ignoreInterface: true,
ignoreInterface: false,
creator: make(map[reflect.Type]interface{}),
creatorLocker: sync.RWMutex{},
typeToValues: make(map[reflect.Type]reflect.Value),
Expand Down

0 comments on commit ea77107

Please sign in to comment.