Go Dependency Injection

Open-source Go projects categorized as Dependency Injection

Top 23 Go Dependency Injection Projects

  • Iris

    The fastest HTTP/2 Go Web Framework. New, modern, easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :leaves: :rocket: | 谢谢 | #golang

    Project mention: A bit about Go Programing language | dev.to | 2022-12-12

    Iris

  • wire

    Compile-time Dependency Injection for Go

    Project mention: Is it just me or does nobody really know what idiomatic Go is. | reddit.com/r/golang | 2023-01-14
  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • go-clean-template

    Clean Architecture template for Golang services

    Project mention: Microservices with clean architecture | reddit.com/r/golang | 2022-12-02

    I've been studying evrone's go clean template repository (https://github.com/evrone/go-clean-template), and I think this is a great starting point for anyone trying to structure their projects according to clean architecture principles. (at least it was for me, it led me to a lot of great resources and reading materials)

  • fx

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

    Project mention: my office want to migrate to go programming language, what framework is recommended between chi or fiber? | reddit.com/r/golang | 2023-01-02

    I've been looking into fx by Uber. Looks pretty cool, but I haven't had the chance to do anything more than a hello, world with it.

  • dig

    A reflection based dependency injection toolkit for Go.

    Project mention: What's the best dependency injection framework / methodology for Golang for the enterprise? | reddit.com/r/golang | 2022-12-21

    Interesting, one of my friends works at a big tech company and they said they passed on Wire and ultimately decided on Uber Dig https://github.com/uber-go/dig. But looking at that lib it seems a bit anti-paradigm of the goal of the Golang language (no magic/obfuscated code running in the background, what you see is what you get style coding)

  • IOC-golang

    一款服务于 Go 开发者的依赖注入框架,方便搭建任何 Go 应用。 A Golang depenedency injection framework, helps developers to build any go application.

    Project mention: Why Go and Not Rust? | news.ycombinator.com | 2023-01-27

    It looks like IoC frameworks do exist for Go (https://github.com/alibaba/IOC-golang for example). I'm sure the True Gosman would not use this but it exists nonetheless. It looks like there are some heretics in the community - how shall we exile these vile peoples?

  • 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 ?

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

  • service-pattern-go

    Simple clean Go REST API architecture with dependency injection and mocking example, following SOLID principles.

    Project mention: Question about the service pattern and data racing in Go | reddit.com/r/golang | 2022-05-26

    Repo for reference: https://github.com/irahardianto/service-pattern-go

  • mortar

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

  • gongular

    A different approach to Go web frameworks

    Project mention: Learning a new language, or how I gained familiarity with Go | news.ycombinator.com | 2022-08-17
  • flamego

    A fantastic modular Go web framework with a slim core but limitless extensibility

    Project mention: Is it possible to write a well-typed controller/handler in Go? | reddit.com/r/golang | 2022-06-30

    Flamego and it's predecessor Macaron also allow a lot of flexibility in the handler definition.

  • container

    A lightweight yet powerful IoC dependency injection container for the Go programming language (by golobby)

  • Flamingo

    Flamingo Framework and Core Library. Flamingo is a go based framework to build pluggable applications. Focus is on clean architecture, maintainability and operation readiness.

    Project mention: Flamingo: Blazingly fast web applications | reddit.com/r/BlazingFast | 2022-02-08
  • goioc/di

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

  • go-web

    A Golang framework for build microservices. (by RobyFerro)

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

  • dingo

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

    Project mention: What's the best dependency injection framework / methodology for Golang for the enterprise? | reddit.com/r/golang | 2022-12-21
  • dihedral

    Compile-time dependency injection for Go

    Project mention: Ask HN: Cool side project you have written using Golang | news.ycombinator.com | 2023-02-02

    I wrote Dihedral, a compile-time dependency injection framework for Go [0]. It was inspired by the Java framework Dagger. It worked pretty well, but was a little clunky with Go's syntax. Ultimately, decided it wasn't worth it given the simplicity of manually constructing Go objects in a service setting.

    0: https://github.com/dimes/dihedral

  • core

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

  • wire

    Strict Runtime Dependency Injection for Golang (by Fs02)

  • controllerbus

    Communicating concurrent controllers program framework.

    Project mention: ControllerBus: framework for modular Go programs w/ Protobuf config & Controllers | reddit.com/r/ApertureRobotics | 2022-10-18
  • linker

    Dependency Injection and Inversion of Control package (by logrange)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

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 2023-02-02.

Go Dependency Injection related posts

Index

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

Project Stars
1 Iris 23,502
2 wire 9,908
3 go-clean-template 4,702
4 fx 3,508
5 dig 2,955
6 IOC-golang 990
7 do 794
8 service-pattern-go 685
9 mortar 642
10 gongular 476
11 flamego 439
12 container 420
13 Flamingo 351
14 goioc/di 235
15 go-web 194
16 hiboot 180
17 di 167
18 dingo 85
19 dihedral 77
20 core 56
21 wire 37
22 controllerbus 37
23 linker 36
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com