di

package module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 27 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

di依赖注入

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

河洛依赖注入框架,特点有

  • Go依赖注入
  • 运行时注入依赖而非编译时注入依赖
  • 线程安全
  • 所有配置项高度可配置化
  • 框架设计最最小暴露原则,只暴露少数几个接口和结构体
  • 依赖支持单例模式和多例模式

交流

微信群

捐助

支持宝 微信

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *builder.Container

Types

type Container

type Container = core.Container

Container 依赖管理容器

type Get

type Get = kernel.Get

Get 向容器注入依赖

type Put

type Put = kernel.Put

Put 从容器获取依赖

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址