dix

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 8 Imported by: 7

README

dix 中文

dix is a dependency injection tool based on the design of dig.

The main difference between dix and dig is that dix can complete more complex dependency injection management and better dependency isolation relying on namespace, and dix can also dynamically bind objects to dependent functions, object change notifications, etc.

CHANGELOG

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dix

func Dix(data interface{}) error

func Graph

func Graph() string

func New

func New(opts ...Option) *dix

Types

type Option

type Option func(c *dix)

func WithAllowNil

func WithAllowNil(nilValueAllowed bool) Option

func WithInvoker

func WithInvoker(invoker invokerFn) Option

func WithRand

func WithRand(r *rand.Rand) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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