# alibaba/IOC-golang

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

Repository: https://github.com/alibaba/IOC-golang
Canonical: https://ross.abutalabs.com/products/ioc-golang
Homepage: https://ioc-golang.github.io
Language: Go
License: Apache-2.0
License Family: permissive
Topics: annotation, aop, debug, dependency-injection, golang, middleware, monkey, sdk, tag
Last push: 2023-06-13T05:31:26+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 1569, "days_push": 1177, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1227, forks 121 (observed 2026-08-28T04:04:03.374502+00:00)

## What it is
IOC-golang is a dependency injection framework for Go that provides a full IoC container with object lifecycle management and autowire models. It includes an AOP-based struct proxy layer enabling debugging features like method-level tracing, parameter watching, and fault injection, plus a code generation tool driven by annotations.

## Use cases
- dependency injection in go applications
- manage object lifecycle and wiring in golang
- aop proxy layer for go structs
- method level tracing and debugging in go
- generate struct registration code from annotations
- build modular go applications with ioc container

## When to choose
- you want a full IoC container with DI for a Go project
- you need AOP-style proxies for tracing, watching, or fault injection
- you prefer annotation-driven code generation for struct registration

## When to avoid
- you prefer minimal explicit wiring without reflection or code generation
- your project needs a very actively maintained framework (last release mid-2023)
- you only need simple constructor-based DI

## Facets
- artifact type: framework
- maturity: maintenance
- function: middleware, developer-tools, plugin-system
- domain: developer-tools, backend, web-development
- platform: go, cli
- tags: dependency-injection, ioc-container, aop, code-generation, struct-proxy, annotations

## Member repositories
- alibaba/IOC-golang (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.374502+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:14.580071+00:00, confidence not recorded.
  - readme: https://github.com/alibaba/IOC-golang (fetched 2026-08-28T04:04:03.374502+00:00, sha 90e9d94e2ea8)
  - homepage: https://ioc-golang.github.io (fetched 2026-08-29T12:22:51.286656+00:00, sha 4dd372c5e51b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
