Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NewFormalGreeterOnce sync.Once
var NewGreeterOnce sync.Once
Functions ¶
func NewFormalGreeterModule ¶
NewFormalGreeterModule registers github.com/xgodev/boost/inject/examples/simple/greeting.NewFormalGreeter and the modules it depends on. It returns an empty option after the first call, so a constructor shared by several modules is registered only once.
func NewGreeterModule ¶
NewGreeterModule registers github.com/xgodev/boost/inject/examples/simple/greeting.NewGreeter and the modules it depends on. It returns an empty option after the first call, so a constructor shared by several modules is registered only once.
func OptionsModule ¶
OptionsModule provides the Options of github.com/xgodev/boost/inject/examples/simple/greeting, filled from the config keys under inject.examples.simple.greeting. It returns an empty option after the first call, so every consumer can include it.
Types ¶
This section is empty.