Skip to content

E0410: A constructor has the wrong shape ​

web.Provide takes constructors, func(deps…) T or func(deps…) (T, error), and ready values (anything not a function). nil and functions of other shapes aren't either. Reported at boot.

Wrong ​

go
web.Provide(func() (*DB, *Cache, error) { … })
go
web.Provide(OpenDB, NewCache)

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.