Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
Bootstrap connects the the dependency graph of the project, and returns the root command and its closer for execution.
func NewRootCmd ¶
NewRootCmd returns the root command.
Types ¶
type Core ¶
type Core interface { Provide(deps di.Deps) AddModule(module interface{}) AddModuleFunc(constructor interface{}) }
Core the application core interface
type Option ¶
type Option func(c Core)
Option Global register option
func Constructors ¶
func Constructors(constructors ...interface{}) Option
Constructors register module constructors
func Dependencies ¶
Dependencies register global dependencies
Click to show internal directories.
Click to hide internal directories.