Documentation ¶ Index ¶ Variables func NewModule() fx.Option Constants ¶ This section is empty. Variables ¶ View Source var NewOnce sync.Once Functions ¶ func NewModule ¶ func NewModule() fx.Option NewModule registers github.com/xgodev/boost/builder/examples/simple/createorder.New 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. Types ¶ This section is empty. Source Files ¶ View all Source files new_module.go Click to show internal directories. Click to hide internal directories.