Skip to content

E0408: A type is provided twice ​

Two constructors (or values) provide the same type, so the container can't choose. Both are named. Reported at boot.

Wrong ​

go
app := web.New(web.Provide(OpenDB, OpenTestDB))   // both return *DB
go
app := web.New(web.Provide(OpenDB))

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.