Skip to content

Circular dependency

func NewA(b *B) *A { ... }
func NewB(a dygo.Lazy[*A]) *B { return &B{a: a} } // call b.a.Get() later, not in the constructor