Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory 模块工厂结构体
采用数组的方式, 索引:模块类型, 值:模块元素的指针
func NewFactory ¶
NewFactory 创建新的工厂实例
参数: capacity - 模块创建器数组的初始容量 e.g.: 0: a模块, 1: b模块, 2: c模块 => 传递 capacity = 3
func (*Factory) CreateAllModule ¶
CreateAllModule 创建所有模块
Click to show internal directories.
Click to hide internal directories.