Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
https://docs.go-blueprint.dev/
MIT License
5.94k stars 335 forks source link

[Feature Request] Adding go-fx support for DI pattern with existing frameworks. #161

Closed NimishKashyap closed 7 months ago

NimishKashyap commented 11 months ago

Tell us about your feature request

Dependency Injection and Inversion of Control is a pattern largely adopted by the Spring ecosystem in Java land with huge success. Although it has an initial learning curve writing scalable applications becomes easier and maintainable with this approach.

Uber has already introduced GO-FX, a dependency injection framework for Go that is maintainable yet flexible enough to write any application in Go. I believe adding DI support for go-blueprint powered by gofx would help developers generate the initial boilerplate code that is required to get started with the application framework.

Ps. I think it'll be suitable with the --advanced flag.

Disclaimer

briancbarrow commented 10 months ago

@NimishKashyap Is this something you want to work on adding?

Ujstor commented 7 months ago

I am closing this one because there is no interest from the author for implementation. Also, I think this is a more advanced approach. It doesn't exactly fit into the blueprint.