goreen-tea
wire
Our great sponsors
goreen-tea | wire | |
---|---|---|
1 | 18 | |
- | 8,443 | |
- | 4.8% | |
- | 4.6 | |
- | 6 days ago | |
Go | ||
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goreen-tea
-
Goreen tea : golang boilerplate for data-intensive microservice
So, without further ado, I introduce you to Goreen-tea 🍵 A boilerplate project that focused on data-intensive (database heavy) microservice. Heavily inspired around the idea of application-centric architecture like clean architecture by Robert Martin.
wire
-
Dependency injection web api
Op’s pattern is not ideal. It certainly degrades testability. Check out https://github.com/google/wire Wire provides DI by being an initialization helper via code generation.
-
Generic-friendly DI library
In terms of what I compare axon to, most DI frameworks in go require either lots of reflection to add/get values from the injector with interface{} based func params like dig or code generation like in wire which can be difficult to integrate into an existing codebase.
- How do you do dependency injection in go?
-
Building a REST API with GO, Gin framework, and GORM.
yeah I used uber.fx (which uses uber.dig under the hood) there's also Wire done by Google themselves https://github.com/google/wire but in my experience it is harder to set up and I found no way to create different containers and "rewire" dependencies
-
Now that Golang has generic types, how do you plan to use them?
The same old story we had even if DI pattern is not supported in Go. But some cant live without it and they need libs like https://github.com/google/wire to auto-generate that code.
- Alternative for Monkey patching
-
Dependency injection in Go with uber-go/fx
It might be worth having a try with wire.
-
Dependency injection in Go with Uber-go/fx
For a slightly different take on this problem, check out Wire (https://github.com/google/wire).
-
How do you deal with dependency injection?
We use wire https://github.com/google/wire
- Go: Wire
What are some alternatives?
fx - A dependency injection based application framework for Go.
dig - A reflection based dependency injection toolkit for Go.
gomock - GoMock is a mocking framework for the Go programming language.
vtprotobuf - A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
goioc/di - Simple and yet powerful Dependency Injection for Go
go-kit - A standard library for microservices.
nject - Golang type-safe dependency injection
wild-workouts-go-ddd-example - Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.
container - A lightweight yet powerful IoC dependency injection container for the Go programming language
go-shortid - Super short, fully unique, non-sequential and URL friendly Ids
gocontainer - Simple Dependency Injection Container
watermill - Building event-driven applications the easy way in Go.