Groot Guo

Results 5 comments of Groot Guo

if you should write provider.go file ```golang package wire_test import "github.com/google/wire" type GrandParent struct { pta *ParentA ptb *ParentB } type ParentA struct { son *Son } type ParentB struct...

your provider.go , not use wire.Struct instead, ```golang son = Son{"singleton"} pta = ParentA{} ptb = ParentB{} ProvideParentASet = wire.NewSet(pta, **son**) ProvideParentBSet = wire.NewSet(ptb, **son**) ProvideGrandParent = wire.NewSet(ProvideParentASet, ProvideParentBSet) ```...

https://github.com/google/wire/blob/main/docs/guide.md

我调整看看

调整完了,看一下这样是否比较合理一些