SHORTLIST20
한국어
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
프로그래밍

Go (Golang) dependency injection libraries

DI containers and code generators for Go, ranked by GitHub stars

업데이트 · GitHub stars (stars)

왜 이 20개인가

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

이 리스트가 유용한가요?
  1. 1

    fx

    A dependency injection based application framework for Go (built on top of dig).

    7,730 stars 354 forkslast push 2025-12-27GoMIT

  2. 2

    dig

    A reflection based dependency injection toolkit for Go.

    4,510 stars 229 forkslast push 2025-05-13GoMIT

  3. 3

    do

    A dependency injection framework based on Generics.

    2,839 stars 113 forkslast push 2026-11-05GoMIT

  4. 4

    GoLobby/Container

    GoLobby Container is a lightweight yet powerful IoC dependency injection container for the Go programming language.

    608 stars 36 forkslast push 2025-08-28GoMIT

  5. 5

    goioc/di

    Spring-inspired Dependency Injection Container.

    378 stars 15 forkslast push 2026-10-30GoMIT

  6. 6

    kod

    A generics based dependency injection framework for Go.

    199 stars 6 forkslast push 2026-08-07GoApache-2.0

  7. 7

    dingo

    A dependency injection toolkit for Go, based on Guice.

    189 stars 15 forkslast push 2026-11-15GoMIT

  8. 8

    gontainer

    A dependency injection service container for Go projects.

    156 stars 11 forkslast push 2026-07-24GoApache-2.0

  9. 9

    godi

    Microsoft-style dependency injection for Go with scoped lifetimes and generics.

    78 stars 2 forkslast push 2026-11-19GoMIT

  10. 10

    alice

    Additive dependency injection container for Golang.

    51 stars 3 forkslast push 2017-04-26GoMIT

  11. 11

    wire

    Strict Runtime Dependency Injection for Golang.

    40 stars 8 forkslast push 2021-08-22GoMIT

  12. 12

    parsley

    A flexible and modular reflection-based DI library with advanced features like scoped contexts and proxy generation, designed for large-scale Go applications.

    37 stars 4 forkslast push 2026-11-16GoApache-2.0

  13. 13

    boot-go

    Component-based development with dependency injection using reflections for Go developers.

    37 stars 4 forkslast push 2024-01-29GoMIT

  14. 14

    linker

    A reflection based dependency injection and inversion of control library with components lifecycle support.

    35 stars 8 forkslast push 2025-01-09GoApache-2.0

  15. 15

    nject

    A type safe, reflective framework for libraries, tests, http endpoints, and service startup.

    33 stars 4 forkslast push 2026-10-09GoMIT

  16. 16

    componego

    A dependency injection framework based on components, allowing dynamic dependency replacement without duplicating code in tests.

    29 stars 1 forkslast push 2024-09-29GoApache-2.0

  17. 17

    ore

    Lightweight, generic & simple dependency injection (DI) container.

    28 stars 3 forkslast push 2026-03-07GoMIT

  18. 18

    gocontainer

    Simple Dependency Injection Container.

    21 stars 2 forkslast push 2026-11-19GoMIT

  19. 19

    gontainer/gontainer

    A YAML-based Dependency Injection container for GO. It supports dependencies' scopes, and auto-detection of circular dependencies. Gontainer is concurrent-safe.

    17 stars 1 forkslast push 2024-08-05GoMIT

  20. 20

    kinit

    Customizable dependency injection container with the global mode, cascade initialization and panic-safe finalization.

    10 stars 1 forkslast push 2021-06-12GoMIT

측정 방법

Every tool in the Dependency Injection section(s) of the community list avelino/awesome-go on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

참고 자료

  1. avelino/awesome-go: Dependency Injection, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-20 22:21 UTC.
  2. avelino/awesome-go (Dependency Injection), GitHub community list, 27 tools with a public repository.