Go Di

Open-source Go projects categorized as Di

Top 6 Go Di Projects

  • dig

    A reflection based dependency injection toolkit for Go.

    Project mention: Is dependency injection in Go a thing? | reddit.com/r/golang | 2022-07-29

    It's a library to help with DI, by Uber: https://github.com/uber-go/dig

  • do

    ⚙️ A dependency injection toolkit based on Go 1.18+ Generics.

    Project mention: Genjector: Reflection-free Run-Time Dependency Injection framework for Go 1.18+ | reddit.com/r/golang | 2022-10-17

    How does this compare with https://github.com/samber/do ?

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • mortar

    Mortar is a GO framework/library for building gRPC (and REST) web services. (by go-masonry)

  • hiboot

    hiboot is a high performance web and cli application framework with dependency injection support

  • di

    🛠 A full-featured dependency injection container for go programming language. (by goava)

  • godi

    🚀 GoDI: Generic based DI in Go (by MaximZayats)

    Project mention: Generic based DI + Injection | reddit.com/r/golang | 2022-05-04

    Hi everyone! I just wanna share with you my implementation of Dependency Injection in GO. Code & examples: github.com/MaximZayats/godi

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-10-17.

Go Di related posts


What are some of the best open-source Di projects in Go? This list will help you:

Project Stars
1 dig 2,865
2 do 690
3 mortar 634
4 hiboot 179
5 di 167
6 godi 8
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.