Skip to content

E0409: A dependency cycle ​

Constructing a type needs itself, through the chain the message shows. Reported at boot.

Wrong ​

go
func NewOrders(p *Payments) *Orders { … }
func NewPayments(o *Orders) *Payments { … }
go
func NewOrders(p *Payments) *Orders { … }
func NewPayments(db *DB) *Payments { … }

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.