Go Dependency Injection

Open-source Go projects categorized as Dependency Injection | Edit details

Top 20 Go Dependency Injection Projects

  • GitHub repo wire

    Compile-time Dependency Injection for Go

    Project mention: How do you deal with dependency injection? | reddit.com/r/golang | 2021-12-26

    We use wire https://github.com/google/wire

  • GitHub repo fx

    A dependency injection based application framework for Go. (by uber-go)

    Project mention: How do you deal with dependency injection? | reddit.com/r/golang | 2021-12-26

    You can try Fx, it works pretty well. You can opt out of a lot of features if you just want DI.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo dig

    A reflection based dependency injection toolkit for Go.

  • GitHub repo mortar

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

    Project mention: Mortar: GO framework/library for building gRPC (and REST) web services | reddit.com/r/golang | 2021-02-13
  • GitHub repo gongular

    A different approach to Go web frameworks

  • GitHub repo container

    A lightweight yet powerful IoC dependency injection container for Go projects (by golobby)

  • GitHub repo hiboot

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

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo goioc/di

    Simple and yet powerful Dependency Injection for Go (by goioc)

  • GitHub repo go-web

    A Laravel like MVC framework written in Go. (by RobyFerro)

    Project mention: Go-Web | An MVC Golang framework | reddit.com/r/golang | 2021-09-20
  • GitHub repo di

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

  • GitHub repo dingo

    Generated dependency injection containers in go (golang) (by sarulabs)

    Project mention: Dependency injection container with ability build it with code generation. | reddit.com/r/golang | 2021-03-29
  • GitHub repo core

    Package core is a service container that elegantly bootstrap and coordinate modular twelve-factor apps in Go. (by DoNewsCode)

    Project mention: Package Core: elegantly bootstrap and coordinate twelve-factor apps in Go | news.ycombinator.com | 2021-03-18
  • GitHub repo wire

    Strict Runtime Dependency Injection for Golang (by Fs02)

  • GitHub repo linker

    Dependency Injection and Inversion of Control package (by logrange)

  • GitHub repo gocontainer

    Simple Dependency Injection Container

  • GitHub repo go-gotham

    Golang RESTful API Boilerplate.

    Project mention: Show HN: Go-Gotham / Boilerplate for Creating RESTful API | news.ycombinator.com | 2021-07-09
  • GitHub repo nject

    Golang type-safe dependency injection (by muir)

  • GitHub repo kinit

    GO Dependency Injection

  • GitHub repo di

    DI container library that is focused on clean API and flexibility. (by HnH)

  • GitHub repo nject

    Go dependency injection: nject & npoint

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 2021-12-26.

Go Dependency Injection related posts


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

Project Stars
1 wire 7,252
2 fx 2,434
3 dig 2,308
4 mortar 589
5 gongular 447
6 container 287
7 hiboot 161
8 goioc/di 144
9 go-web 134
10 di 118
11 dingo 67
12 core 49
13 wire 35
14 linker 32
15 gocontainer 14
16 go-gotham 12
17 nject 5
18 kinit 5
19 di 3
20 nject 3
Find remote jobs at our new job board 99remotejobs.com. There are 28 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.