Skip to content

Commit

Permalink
完成2.0.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
whuanle committed Nov 27, 2022
1 parent 121c9e3 commit 8b2adb6
Show file tree
Hide file tree
Showing 16 changed files with 1,069 additions and 562 deletions.
7 changes: 7 additions & 0 deletions IDispose.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package goioc

// IDispose 释放接口
type IDispose interface {
// Dispose 释放资源
Dispose()
}
2 changes: 1 addition & 1 deletion IServiceProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import "reflect"
type IServiceProvider interface {
// GetService 获取你需要的服务实例
GetService(baseType reflect.Type) (*interface{}, error)
// Dispose 释放当前容器的所有对象
// Dispose 释放当前容器的 Scope 对象
Dispose()
}
File renamed without changes.
Loading

0 comments on commit 8b2adb6

Please sign in to comment.