IOC golang is participating 2021 OSC China Open Source Project Selection , please vote for it!
IOC golang 2021 OSC China Open Source Project Selection {{projectVoteCount} has been obtained in, please vote for it!
2021 OSC China Open Source Project Selection It is in hot progress. Come and vote for your favorite open source project!
2021 OSC China Open Source Project Selection>>> Midfield Review
IOC golang won the 2021 OSC China Open Source Project Selection "The Best Popularity Project" !
Authorization Agreement Apache-2.0
development language Google Go
operating system Cross platform
Software type Open source software
Open source organizations Alibaba
region domestic
intended for unknown
Recording time 2023-03-09

Software Introduction

IOC golang is a powerful Go language dependency injection framework that provides a complete set of IoC containers. Its capabilities are as follows:

  • Dependency injection

    It supports dependency injection of any structure and interface, and has a perfect object lifecycle management mechanism.

    It can take over the creation of objects, parameter injection, factory methods, parameter sources, etc., and has extensibility.

  • Interface Proxy

    Based on the idea of AOP, the default interface proxy layer is provided for objects taken over by the framework. In the context of interface oriented programming   No business invasion   On the premise of, use the rich O&M capabilities extended by the AOP layer based on the structural agent. For example, interface query, parameter dynamic monitoring, method granularity link tracking, performance bottleneck analysis, and full link method granularity tracking in distributed scenarios.

    • monitor
    • Log collection
    • Link Tracking
    • Transaction capability
  • Code generation capability

    We provide a code generation tool. Developers can annotate the structure through annotations, so that they can easily generate structure registration code, structure proxy, structure specific interface, etc.

  • Scalability

    Support the extension of injected structure, the extension of automatic loading model, and the extension of debugging AOP layer.

  • Rich preset components

    Provide prefabricated objects covering mainstream middleware for direct injection.

Project Structure

  • aop:   Structure proxy AOP module: provides the basic capabilities of the AOP layer and extensible APIs.
  • autowire:   It provides a dependency injection kernel and two basic automatic loading models: single instance model and multi instance model
  • config:   The configuration loading module is responsible for parsing the framework configuration file.
  • extension:   Component extension: provides preset implementation structures based on multiple domain models, such as cache, database, and message.
  • example:   Example
  • iocli:   Code generation/program debugging tools
Expand to read the full text

code

Gitee index of is
exceed Items for

comment

Click to join the discussion 🔥 (1) Post and join the discussion 🔥
No content temporarily
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
Issued a question and answer
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
No more
No content temporarily
No content temporarily
one comment
two Collection
 OSCHINA
Log in to view more high-quality content
 Back to top
Top