Our great sponsors
-
axon
A simple, lightweight, and lazy-loaded DI (really just a singleton management) library. (by eddieowens)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Hey all, I just refactored a library I use for my company called axon. It's a simple, lightweight, and lazy-loaded DI (really just a singleton management) library that supports generics. I refactored it to add some needed features as well as get some practice with Go generics (not 100% sure how I feel about them but they're pretty cool so far).
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.