package
0.1.3
Repository: https://github.com/xwc1125/xwc1125-pkg.git
Documentation: pkg.go.dev

# Variables

让相同的对象按照tag能够赋值到一个结构体上面,结构体必须内嵌fx.in。type Girl struct {fx.In}.
No description provided by the author
No description provided by the author
将函数依赖的对象作为参数传进函数然后调用函数。invoke:= func(girl* Girl)-->fx.Invoke(invoke).
No description provided by the author
No description provided by the author
No description provided by the author
将通过容器内的值对外面的变量进行赋值。var girl *girl-->fx.Populate(&gay).
将被依赖的对象的构造函数传进去,传进去的函数必须是个待返回值的函数指针.func NewGirl()*Girl-->fx.Provide(NewGirl).
No description provided by the author
直接提供被依赖的对象。提供的不能是接口。girl:=Newgirl()-->fx.Supply(girl).

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author