Generic-friendly DI library

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
  • axon

    A simple, lightweight, and lazy-loaded DI (really just a singleton management) library. (by eddieowens)

    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).

  • wire

    Compile-time Dependency Injection for Go

    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.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts