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 and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:

    Project mention: How to Use Iris and PostgreSQL for Web Development | dev.to | 2023-07-02

    Iris is a fast and lightweight web framework for Go that offers a rich set of features and a high-performance engine. PostgreSQL is a powerful and reliable relational database system that supports advanced data types and functions. Together, they can form a solid foundation for building modern web applications.

  • wire

    Compile-time Dependency Injection for Go

    Project mention: Injeção de dependência em Go | dev.to | 2024-02-28
  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • go-clean-template

    Clean Architecture template for Golang services

  • fx

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

    Project mention: I write HTTP services in Go after 13 years (Mat Ryer, 2024) | news.ycombinator.com | 2024-02-09

    I found fx(https://github.com/uber-go/fx) to be a super simple yet versatile tool to design my application around.

    All the advice in the article is still helpful, but it takes the "how do I make sure X is initialized when Y needs it" part completely out of the equation and reduces it from an N*M problem to an N problem, ie I only have to worry about how to initialize individual pieces, not about how to synchronize initialization between them.

    I've used quite a few dependency injection libraries in various languages over the years (and implemented a couple myself) and the simplicity and versatility of fx makes it my favorite so far.

  • go-coffeeshop

    ☕ A practical event-driven microservices demo built with Golang. Nomad, Consul Connect, Vault, and Terraform for deployment

  • dig

    A reflection based dependency injection toolkit for Go.

    Project mention: Injeção de dependência em Go | dev.to | 2024-02-28
  • do

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

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

  • IOC-golang

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

  • service-pattern-go

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

  • mortar

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

  • flamego

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

  • container

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

  • gongular

    A different approach to Go web frameworks

  • 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. (by i-love-flamingo)

  • goioc/di

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

  • di

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

  • 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

  • dingo

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

  • dihedral

    Compile-time dependency injection for Go

  • core

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

  • go-vertical-slice-template

    A Golang boilerplate template, based on Vertical Slice Architecture and CQRS pattern with using Echo, Gorm, Zap, Viper, MediatR for CQRS and sarulabs/di for Dependency Injection.

    Project mention: go-vertical-slice-template: A Golang boilerplate template, based on Vertical Slice Architecture and CQRS pattern | /r/coolgithubprojects | 2023-06-25
  • go-gotham

    Golang RESTful API Boilerplate.

  • 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 2024-02-28.

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 24,835
2 wire 12,224
3 go-clean-template 5,899
4 fx 5,142
5 go-coffeeshop 3,913
6 dig 3,678
7 do 1,570
8 IOC-golang 1,184
9 service-pattern-go 775
10 mortar 669
11 flamego 551
12 container 529
13 gongular 503
14 Flamingo 427
15 goioc/di 333
16 di 223
17 go-web 204
18 hiboot 182
19 dingo 94
20 dihedral 76
21 core 57
22 go-vertical-slice-template 50
23 go-gotham 40
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com