For instance, when we have the following code,
func NewDB() DB { return &DB{} }
func NewUser(db
DB) User { return User{db: db} }type Container struct { User User `di:""` }
it generates...
func NewContainer() *Container { db := NewDB() user := NewUser(db) return &Container{User: user} }
No providers, just scan packages and find them.
There are 5 generators.
1. DI
2. Struct to struct mapping (for protubf and so on)
3. Test fixtures (from model to them)
4. SQL queries (like an sqlc but without SQL and more like GORM)
5. Type safe i18n
All we need is just a struct and tags.
Project is just started and just hit v0.0.1. Any feedbacks are very welcome.