Documentation
¶
Index ¶
Constants ¶
View Source
const (
TagOptionNotRequired = "NR" // Not Required, 标注该字段在执行注入时, 如果没有找到对应的实例, 则忽略该字段
)
Variables ¶
View Source
var (
ErrorDependNotCompleted = errors.New("依赖尚未完成")
)
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container interface {
Provider
Populater
Invoker
Get(plugin plugin.Plugin, name ...string) (interface{}, error) // 从容器中获取一个指定类型的实例
}
Container 容器, 用于依赖注入
Click to show internal directories.
Click to hide internal directories.