You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/injection/fx.go

18 lines
309 B
Go

package injection
import "go.uber.org/fx"
var options []fx.Option
func Provide(constructors ...interface{}) {
options = append(options, fx.Provide(constructors...))
}
func Invoke(funcs ...interface{}) {
options = append(options, fx.Invoke(funcs...))
}
func GetOptions() []fx.Option {
return options
}