Documentation
¶
Overview ¶
Package dep 依赖管理
Index ¶
- type Default
- type Dep
- func (d *Dep) AddModule(m Module) error
- func (d *Dep) FindModule(id string) Module
- func (d *Dep) Init() error
- func (d *Dep) InitItem(tag string) error
- func (d *Dep) Inited() bool
- func (d *Dep) Items(mod ...string) map[string][]string
- func (d *Dep) Modules() []Module
- func (d *Dep) NewItem(name string) *Dep
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
Default 默认的 Module 实现
包含了一个函数列表,当作模块的初始化功能。
func NewDefaultModule ¶
NewDefaultModule 返回 Default 实例
Click to show internal directories.
Click to hide internal directories.